From 2281fce9ada9b8a93f1ec5ebfe54b88b480e88e6 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Wed, 15 Apr 2020 11:31:00 +0200 Subject: webbox: Fix Upload --- TODO | 1 + response.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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> 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()};}}, -- cgit v1.2.3