]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/http.cpp
overload operator<<() for wchar_t too (if applicable/possible); this fixes the proble...
[wxWidgets.git] / src / common / http.cpp
index e444c296f8efc0432517a6c86e7d3d5bcd2e5c23..0e7d3a33469e578d1646faa53ed8c0ce66373812 100644 (file)
@@ -219,7 +219,7 @@ bool wxHTTP::BuildRequest(const wxString& path, wxHTTP_Req req)
   case wxHTTP_POST:
     request = wxT("POST");
     if ( GetHeader( wxT("Content-Length") ).IsNull() )
   case wxHTTP_POST:
     request = wxT("POST");
     if ( GetHeader( wxT("Content-Length") ).IsNull() )
-      SetHeader( wxT("Content-Length"), wxString::Format( wxT("%ld"), m_post_buf.Len() ) );
+      SetHeader( wxT("Content-Length"), wxString::Format( wxT("%lu"), (unsigned long)m_post_buf.Len() ) );
     break;
   default:
     return FALSE;
     break;
   default:
     return FALSE;