Commit c4539046 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: No string copy if no cookie crumbling occurs

parent 2af9a376
...@@ -236,6 +236,9 @@ void Downstream::crumble_request_cookie() ...@@ -236,6 +236,9 @@ void Downstream::crumble_request_cookie()
} }
if(num == 0) { if(num == 0) {
if(first == 0 && j == last) {
break;
}
rep_cookie = kv.second.substr(first, j - first); rep_cookie = kv.second.substr(first, j - first);
} else { } else {
cookie_hdrs.push_back cookie_hdrs.push_back
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment