From b2e85bb49018ad17c3c13210b64c95d92e558caf Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Thu, 14 Oct 2010 15:31:16 +0200 Subject: [PATCH] Fix user-agent issue: Use char* pointer instead of address of the std::string class --- src/httphelper.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/httphelper.cpp b/src/httphelper.cpp index 3f33def..25130af 100644 --- a/src/httphelper.cpp +++ b/src/httphelper.cpp @@ -192,7 +192,7 @@ CURL* HTTPHelper::init_curl(string& curl_writedata_buff,char* curl_err_buff) if ( CurlInitError == CURLE_OK) CurlInitError = curl_easy_setopt(curl_easy_handle,CURLOPT_WRITEDATA,&curl_writedata_buff); if ( CurlInitError == CURLE_OK) - CurlInitError = curl_easy_setopt(curl_easy_handle,CURLOPT_USERAGENT,&user_agent); + CurlInitError = curl_easy_setopt(curl_easy_handle,CURLOPT_USERAGENT,user_agent.c_str()); if ( CurlInitError == CURLE_OK) CurlInitError = curl_easy_setopt(curl_easy_handle,CURLOPT_SSL_VERIFYHOST,0); if ( CurlInitError == CURLE_OK) -- 1.7.1