mirror of
https://github.com/boostorg/beast.git
synced 2025-07-30 04:47:29 +02:00
Fixes to rfc7230:
fix #1435, fix #1438 * Example and test can be built on msvc v141 15.9.6 using /std:c++17 and BOOST_BEAST_USE_STD_STRING_VIEW. * changed string_view.to_string() to std:string(string_view), awaiting availability of Library Fundamentals TS here. * Reactivated relevant tests to param_list. #ifdef 0 test exhibited same assertion failed error in debug mode. Now fixed in DEBUG on msvc v141 15.9.6 with BOOST_BEAST_USE_STD_STRING_VIEW and /std:c++17. * Looked up http paramters (transfer-encoding, etc.) and changed tests as well as fixing comment to match specs.
This commit is contained in:
committed by
Vinnie Falco
parent
55d319a9d9
commit
cd28598e5b
@ -339,7 +339,7 @@ void do_server_head(
|
||||
// we do not recognize the request method.
|
||||
res.result(status::bad_request);
|
||||
res.set(field::content_type, "text/plain");
|
||||
res.body() = "Invalid request-method '" + req.method_string().to_string() + "'";
|
||||
res.body() = "Invalid request-method '" + std::string(req.method_string()) + "'";
|
||||
res.prepare_payload();
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user