X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14906731b1d90d356181c0650abac1df0240cdce..da175b2ce4dc35cc4c0baa8bbdc16bf4de6c7684:/src/common/http.cpp?ds=sidebyside diff --git a/src/common/http.cpp b/src/common/http.cpp index 041e5a5e01..c13c7a1bb7 100644 --- a/src/common/http.cpp +++ b/src/common/http.cpp @@ -10,21 +10,18 @@ ///////////////////////////////////////////////////////////////////////////// #ifdef __GNUG__ -#pragma implementation "http.h" + #pragma implementation "http.h" #endif // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" #ifdef __BORLANDC__ -#pragma hdrstop + #pragma hdrstop #endif #if wxUSE_SOCKETS -#ifndef WX_PRECOMP -#endif - #include #include #include "wx/string.h" @@ -130,7 +127,7 @@ bool wxHTTP::ParseHeaders() break; tokenzr.SetString(line, " :\t\n\r"); - if (!tokenzr.HasMoreToken()) + if (!tokenzr.HasMoreTokens()) return FALSE; wxString left_str = tokenzr.GetNextToken(); @@ -197,7 +194,7 @@ bool wxHTTP::BuildRequest(const wxString& path, wxHTTP_Req req) SetFlags(NONE); Notify(FALSE); - sprintf(buf, "%s %s\n\r", tmp_buf, pathbuf); + sprintf(buf, "%s %s\n\r", tmp_buf, (const char*) pathbuf); Write(buf, strlen(buf)); SendHeaders(); sprintf(buf, "\n\r");