Skip to content
This repository was archived by the owner on Jun 12, 2018. It is now read-only.

Commit 7605710

Browse files
committed
Include Port in Host
1 parent 6381ee1 commit 7605710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client_http.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ namespace SimpleWeb {
425425
std::unique_ptr<asio::streambuf> streambuf(new asio::streambuf());
426426
std::ostream write_stream(streambuf.get());
427427
write_stream << method << " " << corrected_path << " HTTP/1.1\r\n";
428-
write_stream << "Host: " << host << "\r\n";
428+
write_stream << "Host: " << host << ":" << std::to_string(port) << "\r\n";
429429
for(auto &h : header)
430430
write_stream << h.first << ": " << h.second << "\r\n";
431431
return streambuf;

0 commit comments

Comments
 (0)