* more fixes, offset in URLS is different now, since we strip the command.
[citadel.git] / webcit / context_loop.c
index 1d1cbb821a39640173b2c9ddf4fcf287a35fe353..1f38768d1786d7bc8e047413934481bc6225b321 100644 (file)
@@ -270,7 +270,7 @@ int ReadHttpSubject(ParsedHttpHdrs *Hdr, StrBuf *Line, StrBuf *Buf)
                        Args, 
                        StrLength(Hdr->ReqLine) -
                        (Args - ChrPtr(Hdr->ReqLine)));
-               StrBufCutAt(Hdr->ReqLine, 0, Args);
+               StrBufCutAt(Hdr->ReqLine, 0, Args - 1);
        } /* don't parse them yet, maybe we don't even care... */
        
        /* now lookup what we are going to do with this... */
@@ -441,13 +441,6 @@ void context_loop(int *sock)
 
 /*     dbg_PrintHash(HTTPHeaders, nix, NULL);  */
 
-
-///HttpHeaderHandler
-
-
-
-
-
        /*
         * If the request is prefixed by "/webcit" then chop that off.  This
         * allows a front end web server to forward all /webcit requests to us