We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bb9868 commit 7b3fb22Copy full SHA for 7b3fb22
src/node_http_parser.cc
@@ -148,7 +148,7 @@ struct StringPtr {
148
void Update(const char* str, size_t size) {
149
if (str_ == NULL)
150
str_ = str;
151
- else if (on_heap_ || str_ + size != str) {
+ else if (on_heap_ || str_ + size_ != str) {
152
// Non-consecutive input, make a copy on the heap.
153
// TODO Use slab allocation, O(n) allocs is bad.
154
char* s = new char[size_ + size];
0 commit comments