Skip to content

Commit

Permalink
URI construction tweak to fix `x = HTTP.URI(scheme = "http", host="fo…
Browse files Browse the repository at this point in the history
…obar.com")`, was "http://foobar.com?", now "http://foobar.com"
  • Loading branch information
samoconnor committed Feb 19, 2018
1 parent b57c6ff commit 8dc959e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/URIs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function Base.merge(uri::URI; scheme::AbstractString=uri.scheme,
@require !isempty(path) || !isempty(query) || isempty(fragment)

ports = string(port)
querys = query isa String ? query : escapeuri(query)
querys = query isa AbstractString ? query : escapeuri(query)

return URI(nostring, scheme, userinfo, host, ports, path, querys, fragment)
end
Expand Down

0 comments on commit 8dc959e

Please sign in to comment.