Commit f4474d57 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Fix compile error with gcc

parent d0310c8a
...@@ -1670,7 +1670,7 @@ bool contains_trailers(const StringRef &s) { ...@@ -1670,7 +1670,7 @@ bool contains_trailers(const StringRef &s) {
for (auto p = std::begin(s), end = std::end(s);; ++p) { for (auto p = std::begin(s), end = std::end(s);; ++p) {
p = std::find_if(p, end, [](char c) { return c != ' ' && c != '\t'; }); p = std::find_if(p, end, [](char c) { return c != ' ' && c != '\t'; });
if (p == end || end - p < trailers.size()) { if (p == end || static_cast<size_t>(end - p) < trailers.size()) {
return false; return false;
} }
if (util::strieq(trailers, StringRef{p, p + trailers.size()})) { if (util::strieq(trailers, StringRef{p, p + trailers.size()})) {
......
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