nghttpx: No string copy if no cookie crumbling occurs

This commit is contained in:
Tatsuhiro Tsujikawa 2013-12-22 15:42:12 +09:00
parent 2af9a37643
commit c4539046be
1 changed files with 3 additions and 0 deletions

View File

@ -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