Fix Http regression from warnings fix

This commit is contained in:
Alex Hultman
2020-12-01 04:37:43 +01:00
parent d97923d974
commit a8b33acf7b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -221,7 +221,7 @@ private:
consumedTotal += consumed;
/* Strip away tail of first "header value" aka URL */
req->headers->value = std::string_view(req->headers->value.data(), std::max<size_t>(0, req->headers->value.length() - 9));
req->headers->value = std::string_view(req->headers->value.data(), (size_t) std::max<int>(0, (int) req->headers->value.length() - 9));
/* Add all headers to bloom filter */
req->bf.reset();