Commit 085a1045 authored by Dominik Charousset's avatar Dominik Charousset

Omit lading / in "web-socket.path" for consistency

parent d2830d80
......@@ -183,7 +183,7 @@ private:
// Store the request information in the settings for the upper layer.
auto& ws = cfg_["web-socket"].as_dictionary();
put(ws, "method", to_rfc_string(hdr.method()));
put(ws, "path", "/" + to_string(hdr.path()));
put(ws, "path", to_string(hdr.path()));
put(ws, "query", hdr.query());
put(ws, "fragment", hdr.fragment());
put(ws, "http-version", hdr.version());
......
......@@ -143,7 +143,7 @@ CAF_TEST(applications receive handshake data via config) {
CAF_CHECK_EQUAL(transport.unconsumed(), 0u);
CAF_CHECK(ws->handshake_complete());
CHECK_SETTING("web-socket.method", "GET");
CHECK_SETTING("web-socket.path", "/chat");
CHECK_SETTING("web-socket.path", "chat");
CHECK_SETTING("web-socket.http-version", "HTTP/1.1");
CHECK_SETTING("web-socket.fields.Host", "server.example.com");
CHECK_SETTING("web-socket.fields.Upgrade", "websocket");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment