From 56a6bc8006596553240ea59c1a73af603afa4f45 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 30 Jan 2016 00:55:39 +0100 Subject: [PATCH] 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. --- src/common/http.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/http.cpp b/src/common/http.cpp index 38598d0aaf..a4621c0731 100644 --- a/src/common/http.cpp +++ b/src/common/http.cpp @@ -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()) {