From 034952030af9d161cba06b30ef0e96c36500c88f Mon Sep 17 00:00:00 2001 From: Bjoern Sikora Date: Tue, 13 Oct 2009 13:24:22 +0200 Subject: [PATCH] Bugfix: Status code in curl data is delimited by carriage return + line feed, so we need \r\n as delimiter. --- src/service_tzo.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/service_tzo.cpp b/src/service_tzo.cpp index 4fd5750..99c12a8 100644 --- a/src/service_tzo.cpp +++ b/src/service_tzo.cpp @@ -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" ) { -- 1.7.1