summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-11-15 07:51:01 -0800
committerPixel <pixel@nobis-crew.org>2011-11-15 07:51:01 -0800
commit0173f9a80775821439a02adaa9535505cbfa9ec5 (patch)
tree972a9b28c0669995dd519da682753cba03e9bd31 /src
parent7e0f18a57671b67ae575803e947e56bb4cf711b7 (diff)
Fixing a few parsing mistakes.
Diffstat (limited to 'src')
-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();