summaryrefslogtreecommitdiffhomepage
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
parentd6334d1e9b646c4460ceca62657bd248c4f7dac0 (diff)
webbox: Fix Upload
-rw-r--r--TODO1
-rw-r--r--response.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/TODO b/TODO
index a8405aa..ddf35df 100644
--- a/TODO
+++ b/TODO
@@ -7,3 +7,4 @@ Speed up config.GetPath
read: The socket was closed due to a timeout
statistics
index page
+webbox: Info if not selected: all
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()};}},