Skip to content

Commit

Permalink
Remove '?' in querystring when posting
Browse files Browse the repository at this point in the history
  • Loading branch information
lbussy committed Apr 17, 2020
1 parent 6d01255 commit 764840a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pushhelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ bool pushToTarget(PushTarget *target, IPAddress targetIP, int port) {

// Open POST connection
if (lcburl.getAfterPath().length() > 0) {
Log.verbose(F("POST /%s?%s HTTP/1.1" CR),
Log.verbose(F("POST /%s%s HTTP/1.1" CR),
lcburl.getPath().c_str(),
lcburl.getAfterPath().c_str()
);
Expand All @@ -85,7 +85,6 @@ bool pushToTarget(PushTarget *target, IPAddress targetIP, int port) {
client.print(F("POST /"));
client.print(lcburl.getPath().c_str());
if (lcburl.getAfterPath().length() > 0) {
client.print(F("?"));
client.print(lcburl.getAfterPath().c_str());
}
client.println(F(" HTTP/1.1"));
Expand Down

0 comments on commit 764840a

Please sign in to comment.