Skip to content

Commit

Permalink
Fix wrong header concat
Browse files Browse the repository at this point in the history
  • Loading branch information
gferon committed Oct 18, 2024
1 parent fd95398 commit ad0666c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/websocket/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl WebSocketRequestMessageBuilder {
pub fn header(mut self, key: &str, value: impl AsRef<str>) -> Self {
self.request
.headers
.push(format!("{key}={}", value.as_ref()));
.push(format!("{key}:{}", value.as_ref()));
self
}

Expand Down

0 comments on commit ad0666c

Please sign in to comment.