mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
Fix external poco and empty http responce
This commit is contained in:
parent
aa22d69aec
commit
131283de5b
@ -47,6 +47,9 @@ void WriteBufferFromHTTPServerResponse::finishSendHeaders()
|
||||
*response_header_ostr << "\r\n" << std::flush;
|
||||
#else
|
||||
/// Newline autosent by response.send()
|
||||
/// if nothing to send in body:
|
||||
if (!response_body_ostr)
|
||||
response_body_ostr = &(response.send());
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user