diff options
Diffstat (limited to 'http_parser.rl')
-rw-r--r-- | http_parser.rl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/http_parser.rl b/http_parser.rl index 0622d62..ef854ba 100644 --- a/http_parser.rl +++ b/http_parser.rl @@ -170,6 +170,9 @@ mog_http_parse(struct mog_http *http, char *buf, size_t len) assert(p <= pe && "buffer overflow after http parse"); assert(http->_p.buf_off <= len && "offset longer than len"); - if (http->cs == http_parser_first_final) return MOG_PARSER_DONE; + if (http->cs == http_parser_first_final) { + http->_p.persistent &= http->svc->persist_client; + return MOG_PARSER_DONE; + } return MOG_PARSER_CONTINUE; } |