diff --git a/CHANGELOG.md b/CHANGELOG.md index 98cac88e..7b1fa3d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ Version 275: * Add basic_stream::rebind_executor * Use automatically deduced return types for all async operations * Support Concepts for completion token params +* https_get example sends the Host header -------------------------------------------------------------------------------- diff --git a/test/doc/core_3_timeouts.cpp b/test/doc/core_3_timeouts.cpp index 5b7630f0..f6eb5907 100644 --- a/test/doc/core_3_timeouts.cpp +++ b/test/doc/core_3_timeouts.cpp @@ -356,7 +356,7 @@ https_get (std::string const& host, std::string const& target, error_code& ec) req.method(http::verb::get); req.target(target); req.version(11); - req.set(http::field::server, host); + req.set(http::field::host, host); req.set(http::field::user_agent, "Beast"); http::async_write(stream, req, yield[ec]); if(ec)