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)
|
||||
{
|
||||
poco_assert(!stream);
|
||||
poco_assert(!stream);
|
||||
|
||||
setContentLength(0);
|
||||
setChunkedTransferEncoding(false);
|
||||
setContentLength(0);
|
||||
setChunkedTransferEncoding(false);
|
||||
|
||||
setStatusAndReason(status);
|
||||
set("Location", uri);
|
||||
setStatusAndReason(status);
|
||||
set("Location", uri);
|
||||
|
||||
// Send header
|
||||
// Send header
|
||||
Poco::Net::HTTPHeaderOutputStream hs(session);
|
||||
write(hs);
|
||||
hs.flush();
|
||||
|
Loading…
Reference in New Issue
Block a user