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:
Vadim Zeitlin 2016-01-30 00:55:39 +01:00
parent 13039d5548
commit 56a6bc8006

View File

@ -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()) {