summaryrefslogtreecommitdiffhomepage
path: root/response.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-05-08 17:32:58 +0200
committerRoland Reichwein <mail@reichwein.it>2020-05-08 17:32:58 +0200
commit4d7dac354158f201cb247278e90341107a6a222f (patch)
tree3c40eaec7e581dc4a6e5e9d72a4c40107333ad9b /response.cpp
parentbc950407cb37e19d833dd9900137be41f7af4d03 (diff)
Bugfix: 400 message
Diffstat (limited to 'response.cpp')
-rw-r--r--response.cpp2
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);
}