Not to send 'EXCEPTION_WHAT' header to client

This commit is contained in:
yhirose 2020-03-10 17:42:14 -04:00
parent e07c5fec01
commit 26deffe0c6
2 changed files with 32 additions and 0 deletions

View file

@ -1923,6 +1923,9 @@ inline ssize_t write_headers(Stream &strm, const T &info,
const Headers &headers) {
ssize_t write_len = 0;
for (const auto &x : info.headers) {
if (x.first == "EXCEPTION_WHAT") {
continue;
}
auto len =
strm.write_format("%s: %s\r\n", x.first.c_str(), x.second.c_str());
if (len < 0) { return len; }