Skip to content

Commit e39051d

Browse files
authored
Update ConnectionRequest.jl (#891)
1 parent 63a268e commit e39051d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/clientlayers/ConnectionRequest.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ function connectionlayer(handler)
8484
shouldreuse = false
8585
# tunnel request
8686
if target_url.scheme in ("https", "wss")
87-
target_url = merge(target_url, port=443)
87+
target_url = URI(target_url, port=443)
8888
elseif target_url.scheme in ("ws", ) && target_url.port == ""
89-
target_url = merge(target_url, port=80) # if there is no port info, connect_tunnel will fail
89+
target_url = URI(target_url, port=80) # if there is no port info, connect_tunnel will fail
9090
end
9191
r = connect_tunnel(io, target_url, req)
9292
if r.status != 200

0 commit comments

Comments
 (0)