]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/http.cpp
wxString::begin and end added
[wxWidgets.git] / src / common / http.cpp
index 19b1edf023052df280bf08c481c4304284d89d40..779472541d3b49476f52655d7454a6db80ec0f76 100644 (file)
@@ -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;
@@ -198,7 +197,7 @@ bool wxHTTP::BuildRequest(const wxString& path, wxHTTP_Req req)
   SetFlags(NONE);
   Notify(FALSE);
 
-  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");