Synchronize MSI download User-Agent

This commit is contained in:
Simon Rozman 2017-12-22 13:03:46 +01:00
parent c25cf09b9a
commit 9f119e3182

View File

@ -463,7 +463,7 @@ bool wxUpdCheckThread::DownloadUpdatePackage()
const wxString scheme = url.GetScheme(); const wxString scheme = url.GetScheme();
if (scheme == wxT("http") || scheme == wxT("https")) { if (scheme == wxT("http") || scheme == wxT("https")) {
wxHTTP &http = (wxHTTP&)url.GetProtocol(); wxHTTP &http = (wxHTTP&)url.GetProtocol();
http.SetHeader(wxS("User-Agent"), wxS("Updater/") wxS(PRODUCT_VERSION_STR)); http.SetHeader(wxS("User-Agent"), wxS("Updater-") wxT(PRODUCT_CFG_APPLICATION) wxS("/") wxS(PRODUCT_VERSION_STR));
} }
} }