Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Commit

Permalink
makes the version on the request configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
shamsimam committed Jan 23, 2019
1 parent 090a0de commit 5e7c59f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/clj/qbits/jet/client/http.clj
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,8 @@
fold-chunked-response-buffer-size
^Authentication$Result auth
cookies
multipart]
multipart
version]
:or {method :get
as :string
follow-redirects? true
Expand All @@ -326,6 +327,9 @@
(decode-chunk-xform as)))
^Request request (.newRequest client ^String url)]

(when version
(.version request version))

(.followRedirects request follow-redirects?)

(when timeout
Expand Down

0 comments on commit 5e7c59f

Please sign in to comment.