Skip to content

Commit

Permalink
make http client based get requests work again
Browse files Browse the repository at this point in the history
  • Loading branch information
amanica committed Apr 10, 2018
1 parent 7f8e4ba commit b33208c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/client.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ global const DEFAULT_CLIENT = Client()
function request(client::Client, method, url::URI;
headers=Header[],
body="",
query=nothing,
enablechunked::Bool=true,
stream::Bool=false,
verbose=false,
Expand All @@ -47,6 +48,9 @@ function request(client::Client, method, url::URI;
# Add default values from client options to args...
if VERSION > v"0.7.0-DEV.2338"
args = merge(client.options, args)
if query != nothing
url = merge(url, query=query)
end
getarg = Base.get
else
for option in client.options
Expand Down

0 comments on commit b33208c

Please sign in to comment.