* set an application specific prefered Buffer size in places where debugging shows...
[citadel.git] / webcit / webcit.c
index a04d78c3fb44db78d61020b25187ccc6514fff19..f18493333e815883f94733eec090cd6b69580514 100644 (file)
@@ -506,7 +506,7 @@ void ReadPostData(void)
        wcsession *WCC = WC;
        StrBuf *content = NULL;
        
-       content = NewStrBuf();
+       content = NewStrBufPlain(NULL, WCC->Hdr->HR.ContentLength + 256);
 
        StrBufPrintf(content, 
                     "Content-type: %s\n"
@@ -792,8 +792,8 @@ SessionNewModule_WEBCIT
 (wcsession *sess)
 {
        sess->ImportantMsg = NewStrBuf();
-       sess->WBuf = NewStrBuf();
-       sess->HBuf = NewStrBuf();
+       sess->WBuf = NewStrBufPlain(NULL, SIZ * 4);
+       sess->HBuf = NewStrBufPlain(NULL, SIZ / 4);
 }
 
 void