nghttpx: No string copy if no cookie crumbling occurs
This commit is contained in:
parent
2af9a37643
commit
c4539046be
@ -236,6 +236,9 @@ void Downstream::crumble_request_cookie()
|
||||
}
|
||||
|
||||
if(num == 0) {
|
||||
if(first == 0 && j == last) {
|
||||
break;
|
||||
}
|
||||
rep_cookie = kv.second.substr(first, j - first);
|
||||
} else {
|
||||
cookie_hdrs.push_back
|
||||
|
Loading…
x
Reference in New Issue
Block a user