diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/HttpServ.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/HttpServ.cc b/lib/HttpServ.cc index 4f225d2..3e75743 100644 --- a/lib/HttpServ.cc +++ b/lib/HttpServ.cc @@ -273,20 +273,21 @@ bool ProcessRequest::ParseUri(String & file, String & domain, String & gvars, Ha ssize_t sppos; *s >> t; -// cerr << "Read Request (1): " << t << endl; + cerr << "Read Request (1): " << t << endl; int IPos = t.strchr('?'); gvars = ""; if (IPos >= 0) { + int HPos = t.strchr(' ', IPos); char * sdup = t.strdup(0, IPos - 1); - gvars = t.extract(IPos + 1); + gvars = t.extract(IPos + 1, HPos - 1); t = sdup; free(sdup); } -// cerr << "New request: " << t << ", gvars = " << gvars << endl; + cerr << "New request: " << t << ", gvars = " << gvars << endl; bad = false; |