mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 20:12:02 +00:00
Update HTTPServerResponse.cpp
This commit is contained in:
parent
2edb3d5ba1
commit
34e85959c1
@ -125,15 +125,15 @@ void HTTPServerResponse::requireAuthentication(const std::string & realm)
|
|||||||
|
|
||||||
void HTTPServerResponse::redirect(const std::string & uri, HTTPStatus status)
|
void HTTPServerResponse::redirect(const std::string & uri, HTTPStatus status)
|
||||||
{
|
{
|
||||||
poco_assert(!stream);
|
poco_assert(!stream);
|
||||||
|
|
||||||
setContentLength(0);
|
setContentLength(0);
|
||||||
setChunkedTransferEncoding(false);
|
setChunkedTransferEncoding(false);
|
||||||
|
|
||||||
setStatusAndReason(status);
|
setStatusAndReason(status);
|
||||||
set("Location", uri);
|
set("Location", uri);
|
||||||
|
|
||||||
// Send header
|
// Send header
|
||||||
Poco::Net::HTTPHeaderOutputStream hs(session);
|
Poco::Net::HTTPHeaderOutputStream hs(session);
|
||||||
write(hs);
|
write(hs);
|
||||||
hs.flush();
|
hs.flush();
|
||||||
|
Loading…
Reference in New Issue
Block a user