Skip to content

Instantly share code, notes, and snippets.

@ry
Created December 29, 2011 01:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ry/1530919 to your computer and use it in GitHub Desktop.
Save ry/1530919 to your computer and use it in GitHub Desktop.
diff --git a/src/node_http_parser.cc b/src/node_http_parser.cc
index 38251a1..3493552 100644
--- a/src/node_http_parser.cc
+++ b/src/node_http_parser.cc
@@ -447,6 +447,8 @@ public:
size_t nparsed =
http_parser_execute(&parser->parser_, &settings, buffer_data + off, len);
+ parser->Flush();
+
// Unassign the 'buffer_' variable
assert(current_buffer);
current_buffer = NULL;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment