Set the user agent used for the update checker requests rather than leaving it as 'wxWidgets 2.x'

Originally committed to SVN as r5808.
This commit is contained in:
Thomas Goyne 2011-11-03 22:50:54 +00:00
parent 2cbe7455bb
commit 4d2a2c618e

View file

@ -347,6 +347,7 @@ void AegisubVersionCheckerThread::DoCheck()
wxString path = base_updates_path + querystring; wxString path = base_updates_path + querystring;
wxHTTP http; wxHTTP http;
http.SetHeader("User-Agent", wxString("Aegisub ") + GetAegisubLongVersionString());
http.SetHeader("Connection", "Close"); http.SetHeader("Connection", "Close");
http.SetFlags(wxSOCKET_WAITALL|wxSOCKET_BLOCK); http.SetFlags(wxSOCKET_WAITALL|wxSOCKET_BLOCK);