Skip to content

Commit

Permalink
kw args for body and headers per #135
Browse files Browse the repository at this point in the history
  • Loading branch information
samoconnor committed Jan 18, 2018
1 parent 54fd8f8 commit 6bc739f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HTTP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ request(method::String, url::URI, headers::Headers, body; kw...)::Response =

const nobody = UInt8[]

request(method, url, headers=Header[], body=nobody; kw...)::Response =
request(method, url, h=Header[], b=nobody; headers=h, body=b, kw...)::Response =
request(string(method), URI(url), mkheaders(headers), body; kw...)


Expand Down

0 comments on commit 6bc739f

Please sign in to comment.