summaryrefslogtreecommitdiff
path: root/src/HttpServer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/HttpServer.cc')
-rw-r--r--src/HttpServer.cc4
1 files 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();