From 34e85959c1a95687a21e352e6b436952cb6db317 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Mon, 26 Feb 2024 03:34:35 +0300 Subject: [PATCH] Update HTTPServerResponse.cpp --- src/Server/HTTP/HTTPServerResponse.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Server/HTTP/HTTPServerResponse.cpp b/src/Server/HTTP/HTTPServerResponse.cpp index f01db7d220e..b6207f2d302 100644 --- a/src/Server/HTTP/HTTPServerResponse.cpp +++ b/src/Server/HTTP/HTTPServerResponse.cpp @@ -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();