X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a737331db68b754c8bf31fa0a15f6d1f207b40bf..c7abc967cda4ca459214626c1f3592e1ac363f81:/src/common/http.cpp diff --git a/src/common/http.cpp b/src/common/http.cpp index 38cb120b72..779472541d 100644 --- a/src/common/http.cpp +++ b/src/common/http.cpp @@ -129,7 +129,6 @@ bool wxHTTP::ParseHeaders() if (line.Length() == 0) break; - printf("Header: %s\n", WXSTRINGCAST line); tokenzr.SetString(line, " :\t\n\r"); if (!tokenzr.HasMoreToken()) return FALSE; @@ -195,10 +194,10 @@ bool wxHTTP::BuildRequest(const wxString& path, wxHTTP_Req req) } SaveState(); + SetFlags(NONE); Notify(FALSE); - SetFlags(WAITALL); - sprintf(buf, "%s %s HTTP/1.0\n\r", tmp_buf, (const char*)pathbuf); + sprintf(buf, "%s %s\n\r", tmp_buf, (const char*) pathbuf); Write(buf, strlen(buf)); SendHeaders(); sprintf(buf, "\n\r"); @@ -275,6 +274,7 @@ wxInputStream *wxHTTP::GetInputStream(const wxString& path) if (!GetHeader(_T("Content-Length")).IsEmpty()) inp_stream->m_httpsize = wxAtoi(WXSTRINGCAST GetHeader(_T("Content-Length"))); + SetFlags(WAITALL); return inp_stream; }