Fix user agent. Don't output a newline after any HTTP header as curl won't filter...
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 18 Oct 2010 09:06:10 +0000 (11:06 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 18 Oct 2010 09:06:10 +0000 (11:06 +0200)
src/httphelper.cpp
src/ip_addr_helper.cpp

index 25130af..997599a 100644 (file)
@@ -166,7 +166,7 @@ CURL* HTTPHelper::init_curl(string& curl_writedata_buff,char* curl_err_buff)
 {
     CurlInitError = CURLE_OK;
     ostringstream user_agent_stream;
-    user_agent_stream << "Intra2net AG - Bullet Proof DYNDNS Daemon - " << MAJOR_VERSION << "." << MINOR_VERSION << endl;
+    user_agent_stream << "Intra2net AG - Bullet Proof DYNDNS Daemon - " << MAJOR_VERSION << "." << MINOR_VERSION;
     string user_agent = user_agent_stream.str();
 
     CURL *curl_easy_handle = curl_easy_init();
index 49c4b9a..3293ee1 100644 (file)
@@ -558,7 +558,7 @@ CURLcode IPAddrHelper::set_curl_url(CURL * curl_easy_handle, const string& url)
 CURL * IPAddrHelper::init_curl(string& curl_writedata_buff,char* curl_err_buff) const
 {
     ostringstream user_agent_stream;
-    user_agent_stream << "Intra2net AG - Bullet Proof DYNDNS Daemon - " << MAJOR_VERSION << "." << MINOR_VERSION << endl;
+    user_agent_stream << "Intra2net AG - Bullet Proof DYNDNS Daemon - " << MAJOR_VERSION << "." << MINOR_VERSION;
     string user_agent = user_agent_stream.str();
 
     CURL *curl_easy_handle = curl_easy_init();