Skip to content

Commit

Permalink
Pass full URI to websocket constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
akadusei committed Aug 15, 2024
1 parent b831f64 commit bbd3e92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lester.cr
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class Lester
set_content_type(headers)
set_user_agent(headers)

HTTP::WebSocket.new(uri.host.to_s, uri.path, headers: headers, tls: true)
HTTP::WebSocket.new(uri, headers: headers)
end

protected def copy(source, destination) : Nil
Expand Down

0 comments on commit bbd3e92

Please sign in to comment.