Fix whitespace trimming test failure

This commit is contained in:
Alex Hultman
2022-11-01 06:05:42 +01:00
parent 4109771890
commit 12e217d9e3
+6 -2
View File
@@ -16,8 +16,12 @@ int main() {
std::cout << httpRequest->getMethod() << std::endl;
// This fails on anything other than Linux?
assert(httpRequest->getHeader("utf8").length());
for (auto [key, value] : *httpRequest) {
std::cout << key << ": " << value << std::endl;
}
/* Since we did proper whitespace trimming this thing is there, but empty */
assert(httpRequest->getHeader("utf8").data());
/* Return ok */
return s;