mirror of
https://github.com/boostorg/beast.git
synced 2025-08-04 15:24:31 +02:00
Set URI in generated WebSocket Upgrade requests (fix #64):
The 'resource' parameter in the call to stream::handshake is used when building the HTTP request to perform the upgrade.
This commit is contained in:
@@ -920,7 +920,7 @@ build_request(boost::string_ref const& host,
|
||||
boost::string_ref const& resource, std::string& key)
|
||||
{
|
||||
http::request_v1<http::empty_body> req;
|
||||
req.url = "/";
|
||||
req.url = { resource.data(), resource.size() };
|
||||
req.version = 11;
|
||||
req.method = "GET";
|
||||
req.headers.insert("Host", host);
|
||||
|
Reference in New Issue
Block a user