Skip to content

Commit

Permalink
HttpRequest: don't send an empty URL for GET request
Browse files Browse the repository at this point in the history
* The new proxy in Thalys trains doesn't like that.
  • Loading branch information
pulkomandy committed Nov 13, 2015
1 parent f86df64 commit 2ecff85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kits/network/libnetapi/HttpRequest.cpp
Expand Up @@ -847,7 +847,7 @@ BHttpRequest::_SendRequest()
request << ':' << Url().Port();
}

if (Url().HasPath())
if (Url().HasPath() && Url().Path().Length() > 0)
request << Url().Path();
else
request << '/';
Expand Down

0 comments on commit 2ecff85

Please sign in to comment.