Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit c9a231d

Browse files
committed
typo in node_http_parser
1 parent e5b787e commit c9a231d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_http_parser.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ struct StringPtr {
191191
void Update(const char* str, size_t size) {
192192
if (str_ == NULL)
193193
str_ = str;
194-
else if (on_heap_ || str_ + size != str) {
194+
else if (on_heap_ || str_ + size_ != str) {
195195
// Non-consecutive input, make a copy on the heap.
196196
// TODO Use slab allocation, O(n) allocs is bad.
197197
char* s = new char[size_ + size];

0 commit comments

Comments
 (0)