reverted wrong changes in htre.c

This commit is contained in:
2020-05-06 09:55:35 +00:00
parent e96cb2ebb4
commit b9a47faff6
2 changed files with 13 additions and 9 deletions

View File

@ -119,6 +119,8 @@ if (mio_htre_getcontentlen(req) > 0)
}
else
{
//mio_svc_htts_sendstatus (htts, csck, 500, mth, mio_htre_getversion(req), (req->flags & MIO_HTRE_ATTR_KEEPALIVE), MIO_NULL);
//return 0;
#if 0
if (mth == MIO_HTTP_POST &&
!(req->flags & MIO_HTRE_ATTR_LENGTH) &&
@ -584,6 +586,11 @@ void mio_svc_htts_sendstatus (mio_svc_htts_t* htts, mio_dev_sck_t* csck, int sta
{
mio_dev_sck_halt (csck);
}
if (!keepalive)
{
mio_dev_sck_write(csck, MIO_NULL, 0, MIO_NULL, MIO_NULL); /* arrange to close the writing end */
}
}