From 76ba7477061bea0bac159220c8935f4f9ed4e404 Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 4 Aug 2011 19:37:30 +0100 Subject: [PATCH] Whoops, fix tests for user-agent being HTTP/1.1 spec --- simgear/io/test_HTTP.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; }; -- 2.39.5