summaryrefslogtreecommitdiffhomepage
path: root/response.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-05-29 12:24:07 +0200
committerRoland Reichwein <mail@reichwein.it>2020-05-29 12:24:07 +0200
commiteff5a1ee1cd8a681f436945a48bbda46be416d9c (patch)
tree7e50ff92f8d388b8a42ba887cdd9f7bde85506fd /response.cpp
parente0451ef59a69eda29efa6bc22294b2bcf8b8b600 (diff)
Authentication for webbox
Diffstat (limited to 'response.cpp')
-rw-r--r--response.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/response.cpp b/response.cpp
index 9ee1977..4e66dd3 100644
--- a/response.cpp
+++ b/response.cpp
@@ -225,6 +225,7 @@ std::unordered_map<std::string, std::function<void(const std::string&, response_
{ "server", [](const std::string& value, response_type& res){res.set(http::field::server, value);} }, // Server name/version string
{ "set_cookie", [](const std::string& value, response_type& res){res.set(http::field::set_cookie, value);} },
{ "status", [](const std::string& value, response_type& res){res.result(unsigned(stoul(value)));} }, // HTTP Status, e.g. "200" (OK)
+ { "www_authenticate", [](const std::string& value, response_type& res){res.set(http::field::www_authenticate, value);} },
};
void SetResponseHeader(const std::string& key, const std::string& value, response_type& res)