Fix whitespace trimming test failure
This commit is contained in:
@@ -16,8 +16,12 @@ int main() {
|
|||||||
|
|
||||||
std::cout << httpRequest->getMethod() << std::endl;
|
std::cout << httpRequest->getMethod() << std::endl;
|
||||||
|
|
||||||
// This fails on anything other than Linux?
|
for (auto [key, value] : *httpRequest) {
|
||||||
assert(httpRequest->getHeader("utf8").length());
|
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 ok */
|
||||||
return s;
|
return s;
|
||||||
|
|||||||
Reference in New Issue
Block a user