From 6bc739f233af98668d47802d5bd2c231e9c573dc Mon Sep 17 00:00:00 2001 From: Sam O'Connor Date: Thu, 18 Jan 2018 15:56:44 +1100 Subject: [PATCH] kw args for body and headers per #135 --- src/HTTP.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HTTP.jl b/src/HTTP.jl index c3bb0c011..953dbd586 100644 --- a/src/HTTP.jl +++ b/src/HTTP.jl @@ -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...)