mirror of
https://github.com/glest/glest-source.git
synced 2025-08-28 18:29:48 +02:00
* change HTTP user agent to conform with new software title (no dash)
* configure HTTP client to follow redirections ("Location:" header/3xx status) * glest.ini: update master server, announcement and version check URLs; reorder MasterServerExternalPortList; add introduction text
This commit is contained in:
@@ -106,7 +106,11 @@ std::string SystemFlags::getHTTP(std::string URL,CURL *handle,int timeOut) {
|
||||
|
||||
/* some servers don't like requests that are made without a user-agent
|
||||
field, so we provide one */
|
||||
curl_easy_setopt(handle, CURLOPT_USERAGENT, "mega-glest-agent/1.0");
|
||||
curl_easy_setopt(handle, CURLOPT_USERAGENT, "megaglest-agent/1.0");
|
||||
|
||||
/* follow HTTP redirects (status 3xx), 20 at most */
|
||||
curl_easy_setopt(handle, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(handle, CURLOPT_MAXREDIRS, 20);
|
||||
|
||||
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line %d] handle = %p\n",__FILE__,__FUNCTION__,__LINE__,handle);
|
||||
|
||||
|
Reference in New Issue
Block a user