]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/http.cpp
fixed bug in ConvertWxToFileTime (bug 525868)
[wxWidgets.git] / src / common / http.cpp
index b98d6c83af9c3a6dae459c1a4c3bf2b7d66607f7..085323449051120ac128370645794b78f234891e 100644 (file)
@@ -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;
 }