From 4d7dac354158f201cb247278e90341107a6a222f Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 8 May 2020 17:32:58 +0200 Subject: Bugfix: 400 message --- response.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/response.cpp b/response.cpp index f89e9e4..2320379 100644 --- a/response.cpp +++ b/response.cpp @@ -318,7 +318,7 @@ response_type generate_response(request_type& req, Server& server) return HttpStatusAndStats("200", "OK", req_ctx, res); } catch(const std::out_of_range& ex) { - return HttpStatus("400", "Bad request: Host "s + std::string{req["host"]} + ":"s + std::string{req.target()} + " unknown"s, res); + return HttpStatus("400", "Bad request: "s + std::string{req["host"]} + ":"s + std::string{req.target()} + " unknown"s, res); } catch(const std::exception& ex) { return HttpStatus("400", "Bad request: "s + std::string{ex.what()}, res); } -- cgit v1.2.3