X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/295272bdcd784fbe2b33883d00cff0f5c0ca5341..15d5a9470be940a5bac66181a9e4c27d47d56558:/src/common/http.cpp?ds=inline diff --git a/src/common/http.cpp b/src/common/http.cpp index b98d6c83af..0853234490 100644 --- a/src/common/http.cpp +++ b/src/common/http.cpp @@ -181,7 +181,7 @@ bool wxHTTP::Connect(const wxString& host) if (!addr->Service(wxT("http"))) addr->Service(80); - + SetHeader(wxT("Host"), host); return TRUE; @@ -198,7 +198,7 @@ bool wxHTTP::Connect(wxSockAddress& addr, bool WXUNUSED(wait)) wxIPV4address *ipv4addr = wxDynamicCast(&addr, wxIPV4address); if (ipv4addr) - SetHeader(wxT("Host"), ipv4addr->Hostname()); + SetHeader(wxT("Host"), ipv4addr->OrigHostname()); return TRUE; }