X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fcontext_loop.c;h=c844f65a74075df3f876029f66cd12ea26239dc2;hb=5bc5607198f7d7629d451eacfb2cbe662aa7473f;hp=856d93ee1028c5d27b3c0fd3a58cb091751e88bc;hpb=89a1f00cb7479eff19e5aca354550a2443414c94;p=citadel.git diff --git a/webcit/context_loop.c b/webcit/context_loop.c index 856d93ee1..c844f65a7 100644 --- a/webcit/context_loop.c +++ b/webcit/context_loop.c @@ -329,8 +329,6 @@ void context_loop(int *sock) LastLine = Line; } while (LineLen > 0); FreeStrBuf(&HeaderName); - /* finish linebuffered fast reading, cut the read part: */ - StrBufCutLeft(Buf, Pos - ChrPtr(Buf)); /* dbg_PrintHash(HTTPHeaders, nix, NULL); */ @@ -550,7 +548,7 @@ void context_loop(int *sock) } go_selected_language(); /* set locale */ #endif - session_loop(HTTPHeaders, ReqLine, ReqType, Buf); /* do transaction */ + session_loop(HTTPHeaders, ReqLine, ReqType, Buf, &Pos); /* do transaction */ #ifdef ENABLE_NLS stop_selected_language(); /* unset locale */ #endif