X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14906731b1d90d356181c0650abac1df0240cdce..c17bcb844883451b564446bf7843e7b3f862fe48:/src/common/http.cpp diff --git a/src/common/http.cpp b/src/common/http.cpp index 041e5a5e01..a7e14752b4 100644 --- a/src/common/http.cpp +++ b/src/common/http.cpp @@ -17,14 +17,15 @@ #include "wx/wxprec.h" #ifdef __BORLANDC__ -#pragma hdrstop + #pragma hdrstop #endif -#if wxUSE_SOCKETS - #ifndef WX_PRECOMP + #include "wx/defs.h" #endif +#if wxUSE_SOCKETS + #include #include #include "wx/string.h" @@ -130,7 +131,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 +198,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");