Skip to content

Commit

Permalink
[HTTP] call url->rebuildUrl() after updating scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
a8jan committed Jan 23, 2024
1 parent 788f4ed commit b3506e1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/network-protocol/HTTP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,15 @@ bool NetworkProtocolHTTP::mount(PeoplesUrlParser *url)

// fix scheme because esp-idf hates uppercase for some #()$@ reason.
if (url->scheme == "HTTP")
{
url->scheme = "http";
url->rebuildUrl();
}
else if (url->scheme == "HTTPS")
{
url->scheme = "https";
url->rebuildUrl();
}

client = new HTTP_CLIENT_CLASS();

Expand Down

0 comments on commit b3506e1

Please sign in to comment.