Use correct version string for wxHTTP User-Agent header by default
Just reuse the existing version string macro instead of duplicating the version here. Closes #17199.
This commit is contained in:
parent
13039d5548
commit
56a6bc8006
@ -360,7 +360,7 @@ bool wxHTTP::BuildRequest(const wxString& path, const wxString& method)
|
||||
|
||||
// If there is no User-Agent defined, define it.
|
||||
if ( GetHeader(wxT("User-Agent")).empty() )
|
||||
SetHeader(wxT("User-Agent"), wxT("wxWidgets 2.x"));
|
||||
SetHeader(wxT("User-Agent"), wxVERSION_STRING);
|
||||
|
||||
// Send authentication information
|
||||
if (!m_username.empty() || !m_password.empty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user