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
1 changed files with 1 additions and 0 deletions

View File

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