diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-05-08 17:32:58 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-05-08 17:32:58 +0200 |
commit | 4d7dac354158f201cb247278e90341107a6a222f (patch) | |
tree | 3c40eaec7e581dc4a6e5e9d72a4c40107333ad9b /response.cpp | |
parent | bc950407cb37e19d833dd9900137be41f7af4d03 (diff) |
Bugfix: 400 message
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 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); } |