summaryrefslogtreecommitdiffhomepage
path: root/response.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-04-15 11:31:00 +0200
committerRoland Reichwein <mail@reichwein.it>2020-04-15 11:31:00 +0200
commit2281fce9ada9b8a93f1ec5ebfe54b88b480e88e6 (patch)
treea04f1fb578a74ff9aefd2c3037d95bfa3a08ab01 /response.cpp
parentd6334d1e9b646c4460ceca62657bd248c4f7dac0 (diff)
webbox: Fix Upload
Diffstat (limited to 'response.cpp')
-rw-r--r--response.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/response.cpp b/response.cpp
index 5c68d51..8f66c54 100644
--- a/response.cpp
+++ b/response.cpp
@@ -85,7 +85,7 @@ std::unordered_map<std::string, std::function<std::string(RequestContext&)>> Get
{"content_length", [](RequestContext& req_ctx) { return std::to_string(req_ctx.GetReq().body().size()); }},
- {"content_type", [](RequestContext& req_ctx) { return std::string{req_ctx.GetReq()["content_type"]}; }}, // TODO: does this work?
+ {"content_type", [](RequestContext& req_ctx) { return std::string{req_ctx.GetReq()[http::field::content_type]}; }},
{"method", [](RequestContext& req_ctx) { return std::string{req_ctx.GetReq().method_string()};}},