Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/framer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ where
.websocket
.server_accept(
&websocket_context.sec_websocket_key,
None,
Some(WebSocketContext.sec_websocket_protocol_list[0]),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is too fragile and I think we should rather take the chosen sec_websocket_protocol as a parameter to this fuinction

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PS, sorry it took so long to get back to you!

&mut self.write_buf,
)
.map_err(FramerError::WebSocket)?;
Expand Down