diff --git a/src/http2.cc b/src/http2.cc index 4677229b..b758d4f6 100644 --- a/src/http2.cc +++ b/src/http2.cc @@ -229,11 +229,11 @@ std::vector sort_nva(const nghttp2_nv *nva, size_t nvlen) auto end = v[i].value + v[i].valuelen; for(;;) { // Skip 0 length value - j = std::find_if_not(j, end, - [](uint8_t c) - { - return c == '\0'; - }); + j = std::find_if(j, end, + [](uint8_t c) + { + return c != '\0'; + }); if(j == end) { break; }