forked from boostorg/beast
@@ -10,7 +10,6 @@
|
||||
#include <beast/core.hpp>
|
||||
#include <beast/http.hpp>
|
||||
#include <boost/asio.hpp>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <cstdlib>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
@@ -53,7 +52,7 @@ int main()
|
||||
req.target("/");
|
||||
req.version = 11;
|
||||
req.set(http::field::host, host + ":" +
|
||||
boost::lexical_cast<std::string>(sock.remote_endpoint().port()));
|
||||
std::to_string(sock.remote_endpoint().port()));
|
||||
req.set(http::field::user_agent, "Beast");
|
||||
req.prepare_payload();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user