From 0173f9a80775821439a02adaa9535505cbfa9ec5 Mon Sep 17 00:00:00 2001 From: Pixel Date: Tue, 15 Nov 2011 07:51:01 -0800 Subject: Fixing a few parsing mistakes. --- src/HttpServer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HttpServer.cc b/src/HttpServer.cc index b35b7c2..f3b95a7 100644 --- a/src/HttpServer.cc +++ b/src/HttpServer.cc @@ -112,7 +112,7 @@ bool Balau::HttpWorker::handleClient() { return false; } - url = line.extract(urlBegin, urlEnd); + url = line.extract(urlBegin, urlEnd - urlBegin + 1); int httpBegin = urlEnd + 2; @@ -144,7 +144,7 @@ bool Balau::HttpWorker::handleClient() { return false; } - String key = line.extract(0, colon - 1); + String key = line.extract(0, colon); String value = line.extract(colon + 1); value.trim(); -- cgit v1.2.3