diff --git a/src/node_http_parser.cc b/src/node_http_parser.cc index e24f378e3f24e0..18ac6599d80919 100644 --- a/src/node_http_parser.cc +++ b/src/node_http_parser.cc @@ -784,6 +784,7 @@ class Parser : public AsyncWrap, public StreamListener { void Init(parser_type_t type) { #ifdef NODE_EXPERIMENTAL_HTTP llhttp_init(&parser_, type, &settings); + header_nread_ = 0; #else /* !NODE_EXPERIMENTAL_HTTP */ http_parser_init(&parser_, type); #endif /* NODE_EXPERIMENTAL_HTTP */