HttpRequest: don't send an empty URL for GET request

* The new proxy in Thalys trains doesn't like that.
This commit is contained in:
Adrien Destugues 2015-11-13 18:23:52 +01:00
parent f86df64b91
commit 2ecff85ce1

View File

@ -847,7 +847,7 @@ BHttpRequest::_SendRequest()
request << ':' << Url().Port();
}
if (Url().HasPath())
if (Url().HasPath() && Url().Path().Length() > 0)
request << Url().Path();
else
request << '/';