Bugfix: Status code in curl data is delimited by carriage return + line feed, so...
authorBjoern Sikora <bjoern.sikora@intra2net.com>
Tue, 13 Oct 2009 11:24:22 +0000 (13:24 +0200)
committerBjoern Sikora <bjoern.sikora@intra2net.com>
Tue, 13 Oct 2009 11:24:22 +0000 (13:24 +0200)
src/service_tzo.cpp

index 4fd5750..99c12a8 100644 (file)
@@ -117,7 +117,7 @@ int ServiceTzo::perform_update(const std::string& ip)
     {
         // Get the received http data and parse the status code.
         string curl_data = HTTPHelp->get_curl_data();
-        string status_code = Util::parse_status_code(curl_data,"\n");
+        string status_code = Util::parse_status_code(curl_data,"\r\n");
 
         if ( status_code == "200" )
         {