Fix external poco and empty http responce

This commit is contained in:
proller 2017-02-08 15:38:34 +03:00 committed by alexey-milovidov
parent aa22d69aec
commit 131283de5b

View File

@ -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
}
}