size_t bytes_read = 0;
int first = 1;
int chunked = 0;
- StrBuf *BufHeader;
+ StrBuf *BufHeader = NULL;
StrBuf *Buf;
Buf = NewStrBuf();
StrBufPrintf(BufHeader, "%s%x\r\n",
(first)?"":"\r\n",
StrLength (WCC->WBuf));
+ first = 0;
if (send_http(BufHeader) < 0)
break;
}