Add the port to the HTTP Host header when needed.

* When the port is not the default one, it must be added to the "Host"
header so the server knows what we're connecting to.

Fixes #11070.
This commit is contained in:
Adrien Destugues
2014-07-28 15:02:13 +02:00
parent ae2cdda736
commit 021ebc2f8c
2 changed files with 20 additions and 1 deletions
+3
View File
@@ -81,6 +81,9 @@ private:
void _SetResultStatusCode(int32 statusCode);
BString& _ResultStatusText();
// Utility methods
bool _IsDefaultPort();
private:
BAbstractSocket* fSocket;
BNetworkAddress fRemoteAddr;