summaryrefslogtreecommitdiffhomepage
path: root/response.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'response.cpp')
-rw-r--r--response.cpp2
1 files changed, 2 insertions, 0 deletions
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);
}