fixed bugs in processing chunked request

This commit is contained in:
2010-11-26 08:58:36 +00:00
parent c03b2467af
commit 84376d6d92
2 changed files with 119 additions and 81 deletions

View File

@ -38,22 +38,23 @@ struct qse_http_t
QSE_DEFINE_COMMON_FIELDS (http)
qse_http_errnum_t errnum;
struct
{
int crlf; /* crlf status */
qse_size_t plen; /* raw request length excluding crlf */
qse_size_t need; /* number of octets needed for contents */
struct
{
qse_size_t len;
qse_size_t count;
int phase;
} chunk;
} state;
int crlf; /* crlf status */
qse_size_t plen; /* raw request length excluding crlf */
qse_size_t need; /* number of octets needed for contents */
struct
{
qse_size_t len;
qse_size_t count;
int phase;
} chunk;
} state;
struct
{
qse_http_octb_t raw;
qse_http_octb_t con;
@ -170,6 +171,10 @@ void qse_http_fini (
qse_http_t* http
);
void qse_http_clear (
qse_http_t* http
);
#ifdef __cplusplus
}
#endif