Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

typo in node_http_parser

  • Loading branch information...
commit 7b3fb22290c3b6acb497ca85cf2f1648d75c8154 1 parent 6bb9868
isaacs isaacs authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/node_http_parser.cc
2  src/node_http_parser.cc
View
@@ -148,7 +148,7 @@ struct StringPtr {
void Update(const char* str, size_t size) {
if (str_ == NULL)
str_ = str;
- else if (on_heap_ || str_ + size != str) {
+ else if (on_heap_ || str_ + size_ != str) {
// Non-consecutive input, make a copy on the heap.
// TODO Use slab allocation, O(n) allocs is bad.
char* s = new char[size_ + size];
Please sign in to comment.
Something went wrong with that request. Please try again.