Fix user agent. Don't output a newline after any HTTP header as curl won't filter...
[bpdyndnsd] / src / httphelper.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();