diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-04-19 15:59:07 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-04-19 15:59:07 +0200 |
commit | 40735bb1229ae0369e7d763964ffbe543334b7c9 (patch) | |
tree | bc85b49852549edcc3f45f976ce56f65f077a3e3 /response.cpp | |
parent | b8f80db4ec3a5e586903834f29ec50a265c0c1fa (diff) |
Fix CGI i/o
Diffstat (limited to 'response.cpp')
-rw-r--r-- | response.cpp | 2 |
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); } |