X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fio%2Ftest_HTTP.cxx;h=aa8138245bd221b6d95103daeccdb5de0149f9bb;hb=76ba7477061bea0bac159220c8935f4f9ed4e404;hp=d0c771213902f58272fe7b04cb4d0d9c48173aa9;hpb=115531e944f51c3295f69f3ed361bf421515cc58;p=simgear.git 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; };