summaryrefslogtreecommitdiff
path: root/include/forward_unauthorized.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/forward_unauthorized.hpp')
-rw-r--r--include/forward_unauthorized.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/forward_unauthorized.hpp b/include/forward_unauthorized.hpp
index 5d5e744f47..07836cefd1 100644
--- a/include/forward_unauthorized.hpp
+++ b/include/forward_unauthorized.hpp
@@ -34,8 +34,8 @@ inline void sendUnauthorized(std::string_view url,
// If we don't have a webui installed, just return an unauthorized
// body
res.result(boost::beast::http::status::unauthorized);
- res.body() =
- "No authentication provided, and no login UI present to forward to.";
+ res.write(
+ "No authentication provided, and no login UI present to forward to.");
return;
}