Skip to content

Commit b54c0c7

Browse files
author
p34k1n
committed
feat core: full header name in bad header error
Tests: testsuite commit_hash:5a3829fd2ae0a93cd0ea27d2d473b2c6475798b7
1 parent 42b6cbe commit b54c0c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/server/http/http_response.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void CheckHeaderName(std::string_view name) {
5454
auto code = static_cast<uint8_t>(c);
5555
if (bad_chars[code]) {
5656
throw std::runtime_error(
57-
std::string("invalid character in header name: '") + c + "' (#" + std::to_string(code) + ")"
57+
fmt::format("invalid character in header name: '{}' (#{}), full header name: {}", c, code, name)
5858
);
5959
}
6060
}

0 commit comments

Comments
 (0)