Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
085a1045
Commit
085a1045
authored
Feb 18, 2022
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Omit lading / in "web-socket.path" for consistency
parent
d2830d80
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
libcaf_net/caf/net/web_socket/server.hpp
libcaf_net/caf/net/web_socket/server.hpp
+1
-1
libcaf_net/test/net/web_socket/server.cpp
libcaf_net/test/net/web_socket/server.cpp
+1
-1
No files found.
libcaf_net/caf/net/web_socket/server.hpp
View file @
085a1045
...
...
@@ -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
());
...
...
libcaf_net/test/net/web_socket/server.cpp
View file @
085a1045
...
...
@@ -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"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment