diff options
Diffstat (limited to 'deps/llhttp/src/http.c')
-rw-r--r-- | deps/llhttp/src/http.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/deps/llhttp/src/http.c b/deps/llhttp/src/http.c index 67834c2d37..65d2ee677e 100644 --- a/deps/llhttp/src/http.c +++ b/deps/llhttp/src/http.c @@ -74,9 +74,11 @@ int llhttp__after_message_complete(llhttp_t* parser, const char* p, int should_keep_alive; should_keep_alive = llhttp_should_keep_alive(parser); - parser->flags = 0; parser->finish = HTTP_FINISH_SAFE; + /* Keep `F_LENIENT` flag between messages, but reset every other flag */ + parser->flags &= F_LENIENT; + /* NOTE: this is ignored in loose parsing mode */ return should_keep_alive; } |