* Small fix in wxHTTP::BuildRequest
* Introduced wxURL::ConvertToValidURI (to be implemented) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
dcd6b914e5
commit
14906731b1
@ -68,6 +68,8 @@ public:
|
|||||||
|
|
||||||
static void SetDefaultProxy(const wxString& url_proxy);
|
static void SetDefaultProxy(const wxString& url_proxy);
|
||||||
void SetProxy(const wxString& url_proxy);
|
void SetProxy(const wxString& url_proxy);
|
||||||
|
|
||||||
|
static wxString ConvertToValidURI(const wxString& uri);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -129,7 +129,6 @@ bool wxHTTP::ParseHeaders()
|
|||||||
if (line.Length() == 0)
|
if (line.Length() == 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
printf("Header: %s\n", WXSTRINGCAST line);
|
|
||||||
tokenzr.SetString(line, " :\t\n\r");
|
tokenzr.SetString(line, " :\t\n\r");
|
||||||
if (!tokenzr.HasMoreToken())
|
if (!tokenzr.HasMoreToken())
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@ -198,7 +197,7 @@ bool wxHTTP::BuildRequest(const wxString& path, wxHTTP_Req req)
|
|||||||
SetFlags(NONE);
|
SetFlags(NONE);
|
||||||
Notify(FALSE);
|
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));
|
Write(buf, strlen(buf));
|
||||||
SendHeaders();
|
SendHeaders();
|
||||||
sprintf(buf, "\n\r");
|
sprintf(buf, "\n\r");
|
||||||
|
@ -316,5 +316,10 @@ void wxURL::SetProxy(const wxString& url_proxy)
|
|||||||
m_path = url_proxy;
|
m_path = url_proxy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxString wxURL::ConvertToValidURI(const wxString& uri)
|
||||||
|
{
|
||||||
|
return wxString(uri);
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
// wxUSE_SOCKETS
|
// wxUSE_SOCKETS
|
||||||
|
Loading…
Reference in New Issue
Block a user