src: Code cleanup
This commit is contained in:
parent
d4b1890054
commit
2af9a37643
10
src/http2.cc
10
src/http2.cc
|
@ -229,11 +229,11 @@ std::vector<nghttp2_nv> sort_nva(const nghttp2_nv *nva, size_t nvlen)
|
||||||
auto end = v[i].value + v[i].valuelen;
|
auto end = v[i].value + v[i].valuelen;
|
||||||
for(;;) {
|
for(;;) {
|
||||||
// Skip 0 length value
|
// Skip 0 length value
|
||||||
j = std::find_if_not(j, end,
|
j = std::find_if(j, end,
|
||||||
[](uint8_t c)
|
[](uint8_t c)
|
||||||
{
|
{
|
||||||
return c == '\0';
|
return c != '\0';
|
||||||
});
|
});
|
||||||
if(j == end) {
|
if(j == end) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue