From 40735bb1229ae0369e7d763964ffbe543334b7c9 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 19 Apr 2020 15:59:07 +0200 Subject: Fix CGI i/o --- response.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'response.cpp') diff --git a/response.cpp b/response.cpp index 97e2019..52081f6 100644 --- a/response.cpp +++ b/response.cpp @@ -181,6 +181,8 @@ void SetResponseHeader(const std::string& key, const std::string& value, respons res.set(http::field::location, value); } else if (key == "cache_control") { res.set(http::field::cache_control, value); + } else if (key == "set_cookie") { + res.set(http::field::set_cookie, value); } else throw std::runtime_error("Unsupported response field: "s + key); } -- cgit v1.2.3