diff --git a/include/wx/url.h b/include/wx/url.h index aa224f7f3b..f8f54af963 100644 --- a/include/wx/url.h +++ b/include/wx/url.h @@ -68,6 +68,8 @@ public: static void SetDefaultProxy(const wxString& url_proxy); void SetProxy(const wxString& url_proxy); + + static wxString ConvertToValidURI(const wxString& uri); }; #endif diff --git a/src/common/http.cpp b/src/common/http.cpp index 19b1edf023..041e5a5e01 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; @@ -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, pathbuf); Write(buf, strlen(buf)); SendHeaders(); sprintf(buf, "\n\r"); diff --git a/src/common/url.cpp b/src/common/url.cpp index ef280923ab..89b1f889cc 100644 --- a/src/common/url.cpp +++ b/src/common/url.cpp @@ -316,5 +316,10 @@ void wxURL::SetProxy(const wxString& url_proxy) m_path = url_proxy; } +wxString wxURL::ConvertToValidURI(const wxString& uri) +{ + return wxString(uri); +} + #endif // wxUSE_SOCKETS