mirror of
https://github.com/boostorg/beast.git
synced 2025-08-03 14:54:32 +02:00
@@ -1,3 +1,9 @@
|
||||
Version 63:
|
||||
|
||||
* Use std::to_string instead of lexical_cast
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Version 62:
|
||||
|
||||
* Remove libssl-dev from a Travis matrix item
|
||||
|
@@ -9,7 +9,6 @@
|
||||
#include <beast/http.hpp>
|
||||
#include <boost/asio.hpp>
|
||||
#include <boost/asio/ssl.hpp>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
@@ -62,7 +61,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();
|
||||
|
||||
|
@@ -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();
|
||||
|
||||
|
@@ -11,7 +11,6 @@
|
||||
#include <beast/http.hpp>
|
||||
#include <beast/version.hpp>
|
||||
#include <boost/asio.hpp>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <cstdlib>
|
||||
#include <iostream>
|
||||
|
||||
@@ -80,8 +79,7 @@ main(int, char const*[])
|
||||
req.version = 11;
|
||||
req.method(http::verb::get);
|
||||
req.target("/");
|
||||
req.set(http::field::host, host + std::string(":") +
|
||||
boost::lexical_cast<std::string>(ep.port()));
|
||||
req.set(http::field::host, host + std::string(":") + std::to_string(ep.port()));
|
||||
req.set(http::field::user_agent, BEAST_VERSION_STRING);
|
||||
|
||||
// Set the Connection: close field, this way the server will close
|
||||
|
Reference in New Issue
Block a user