diff options
Diffstat (limited to 'response.cpp')
-rw-r--r-- | response.cpp | 2 |
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()};}}, |