mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 17:28:29 +00:00
Not to send 'EXCEPTION_WHAT' header to client
This commit is contained in:
parent
e07c5fec01
commit
26deffe0c6
2 changed files with 32 additions and 0 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue