Skip to content

Commit 603547c

Browse files
committed
Modification to connection test.
1 parent 84a555b commit 603547c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

http/test/v2/features/client/normal_connection_test.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,12 @@ Describe(normal_http_connection) {
4444
void WriteToBoost(boost::system::error_code &ec,
4545
std::size_t &bytes_written) {
4646
// Create an HTTP request.
47-
http::request request{network::uri{"http://www.boost.org/"}};
47+
http::request request;
4848
request
4949
.method(http::method::GET)
50+
.path("/")
5051
.version("1.0")
52+
.append_header("Host", "www.boost.org")
5153
.append_header("User-Agent", "normal_connection_test")
5254
.append_header("Connection", "close");
5355

0 commit comments

Comments
 (0)