Changed: Use Ryzom user agent for CURL
--HG-- branch : hotfix
This commit is contained in:
parent
49bbb10b58
commit
d774dcac3e
1 changed files with 2 additions and 1 deletions
|
@ -22,6 +22,7 @@
|
||||||
#include "../user_entity.h"
|
#include "../user_entity.h"
|
||||||
#include "../entities.h"
|
#include "../entities.h"
|
||||||
#include "interface_manager.h"
|
#include "interface_manager.h"
|
||||||
|
#include "user_agent.h"
|
||||||
|
|
||||||
// used for login cookie to be sent to the web server
|
// used for login cookie to be sent to the web server
|
||||||
#include "../net_manager.h"
|
#include "../net_manager.h"
|
||||||
|
@ -157,7 +158,7 @@ struct CWebigNotificationThread : public NLMISC::IRunnable
|
||||||
if(!Curl) return;
|
if(!Curl) return;
|
||||||
curl_easy_setopt(Curl, CURLOPT_COOKIEFILE, "");
|
curl_easy_setopt(Curl, CURLOPT_COOKIEFILE, "");
|
||||||
curl_easy_setopt(Curl, CURLOPT_NOPROGRESS, 1);
|
curl_easy_setopt(Curl, CURLOPT_NOPROGRESS, 1);
|
||||||
curl_easy_setopt(Curl, CURLOPT_USERAGENT, "Ryzom");
|
curl_easy_setopt(Curl, CURLOPT_USERAGENT, getUserAgent().c_str());
|
||||||
curl_easy_setopt(Curl, CURLOPT_FOLLOWLOCATION, 1);
|
curl_easy_setopt(Curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||||
curl_easy_setopt(Curl, CURLOPT_WRITEFUNCTION, writeDataFromCurl);
|
curl_easy_setopt(Curl, CURLOPT_WRITEFUNCTION, writeDataFromCurl);
|
||||||
//nlinfo("ctor CWebigNotificationThread");
|
//nlinfo("ctor CWebigNotificationThread");
|
||||||
|
|
Loading…
Reference in a new issue