Skip to content

Commit

Permalink
Update ConnectionRequest.jl (#891)
Browse files Browse the repository at this point in the history
  • Loading branch information
2005m authored Jul 24, 2022
1 parent 63a268e commit e39051d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clientlayers/ConnectionRequest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ function connectionlayer(handler)
shouldreuse = false
# tunnel request
if target_url.scheme in ("https", "wss")
target_url = merge(target_url, port=443)
target_url = URI(target_url, port=443)
elseif target_url.scheme in ("ws", ) && target_url.port == ""
target_url = merge(target_url, port=80) # if there is no port info, connect_tunnel will fail
target_url = URI(target_url, port=80) # if there is no port info, connect_tunnel will fail
end
r = connect_tunnel(io, target_url, req)
if r.status != 200
Expand Down

0 comments on commit e39051d

Please sign in to comment.