* more fixes, offset in URLS is different now, since we strip the command.
[citadel.git] / webcit / downloads.c
index b0e7cace3a431e099ff085248465ccfd38b5d1b3..c8970ef3a528b2651a1e956b13241809f54db907 100644 (file)
@@ -249,7 +249,7 @@ void download_file(void)
        int force_download = 1;
        
        Buf = NewStrBuf();
-       StrBufExtract_token(Buf, WCC->Hdr->ReqLine, 2, '/');
+       StrBufExtract_token(Buf, WCC->Hdr->ReqLine, 0, '/');
        StrBufUnescape(Buf, 1);
        serv_printf("OPEN %s", ChrPtr(Buf));
        StrBuf_ServGetln(Buf);