added .DATA to the chunked output

This commit is contained in:
hyung-hwan 2018-03-14 10:39:36 +00:00
parent 39749ab847
commit 72fe88548f

View File

@ -1023,8 +1023,8 @@ static int write_reply_chunk (hcl_server_proto_t* proto)
if (proto->reply.nchunks <= 0) if (proto->reply.nchunks <= 0)
{ {
/* this is the first chunk */ /* this is the first chunk */
iov[count].iov_base = ".OK\n.ENCODING chunked\n"; iov[count].iov_base = ".OK\n.ENCODING chunked\n.DATA\n";
iov[count++].iov_len = 22; iov[count++].iov_len = 28;
} }
iov[count].iov_base = cl, iov[count].iov_base = cl,