Send query of URL in wxWebRequestWinHTTP

This commit is contained in:
Tobias Taschner 2018-10-22 21:43:13 +02:00
parent d7dee7019e
commit b24581811e
No known key found for this signature in database
GPG Key ID: AE6ECD71294F87FD

View File

@ -268,9 +268,13 @@ void wxWebRequestWinHTTP::Start()
else
method = "GET";
wxString objectName = uri.GetPath();
if ( uri.HasQuery() )
objectName += "?" + uri.GetQuery();
// Open a request
m_request = ::WinHttpOpenRequest(m_connect,
method.wc_str(), uri.GetPath().wc_str(),
method.wc_str(), objectName.wc_str(),
NULL, WINHTTP_NO_REFERER,
WINHTTP_DEFAULT_ACCEPT_TYPES,
(isSecure) ? WINHTTP_FLAG_SECURE : 0);