summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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()};}},