diff --git a/include/beast/websocket/impl/stream.ipp b/include/beast/websocket/impl/stream.ipp index 874081df..4c69a032 100644 --- a/include/beast/websocket/impl/stream.ipp +++ b/include/beast/websocket/impl/stream.ipp @@ -920,7 +920,7 @@ build_request(boost::string_ref const& host, boost::string_ref const& resource, std::string& key) { http::request_v1 req; - req.url = "/"; + req.url = { resource.data(), resource.size() }; req.version = 11; req.method = "GET"; req.headers.insert("Host", host);