* migrate http read logic to the strbuf controlled readbuffered internal fast mode
[citadel.git] / webcit / context_loop.c
index 856d93ee1028c5d27b3c0fd3a58cb091751e88bc..c844f65a74075df3f876029f66cd12ea26239dc2 100644 (file)
@@ -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