From: James Turner Date: Thu, 4 Aug 2011 18:37:30 +0000 (+0100) Subject: Whoops, fix tests for user-agent being HTTP/1.1 spec X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=76ba7477061bea0bac159220c8935f4f9ed4e404;p=simgear.git Whoops, fix tests for user-agent being HTTP/1.1 spec --- diff --git a/simgear/io/test_HTTP.cxx b/simgear/io/test_HTTP.cxx index d0c77121..aa813824 100644 --- a/simgear/io/test_HTTP.cxx +++ b/simgear/io/test_HTTP.cxx @@ -106,7 +106,7 @@ public: if (state == STATE_IDLE) { state = STATE_HEADERS; string_list line = strutils::split(buffer, NULL, 3); - if (line.size() < 4) { + if (line.size() < 3) { cerr << "malformed request:" << buffer << endl; exit(-1); } @@ -114,7 +114,6 @@ public: method = line[0]; path = line[1]; httpVersion = line[2]; - userAgent = line[3]; requestHeaders.clear(); buffer.clear(); } else if (state == STATE_HEADERS) { @@ -230,7 +229,6 @@ public: string method; string path; string httpVersion; - string userAgent; std::map requestHeaders; };