* set post data length, since there are still some functions dependg on it
free(Buf);
} else if (WCC->Hdr->HR.ContentLength > 0) {
WCC->upload = content;
+ WCC->upload_length = StrLength(WCC->upload);
content = NULL;
}
FreeStrBuf(&content);
{
DeleteHash(&sess->Directory);
- if (sess->upload_length > 0) {
- FreeStrBuf(&sess->upload);
- sess->upload_length = 0;
- }
+ FreeStrBuf(&sess->upload);
+ sess->upload_length = 0;
+
FreeStrBuf(&sess->trailing_javascript);
if (StrLength(sess->WBuf) > SIZ * 30) /* Bigger than 120K? release. */