Skip to content

Commit d68242c

Browse files
authored
Fix typo in "unexceptional" docs (#533)
The word "unexceptional" was misspelled and the description of usage for the `:unexceptional-status` was missing *not*.
1 parent 25193b1 commit d68242c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.org

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ it's received (output coercion) from the server.
550550
Output coercion with =:as :json=, =:as :json-strict=, =:as :json-strict-string-keys=, =:as :json-string-keys= or =:as :x-www-form-urlencoded= will only work with an optional dependency, see [[#optional-dependencies][Optional Dependencies]].
551551

552552
By default, JSON coercion is only applied when the response's status
553-
is considered "unexceptional". If the =:unexeceptional-status= option
553+
is considered "unexceptional". If the =:unexceptional-status= option
554554
is provided, then its value is a function which specifies what status
555555
codes are unexceptional. =:unexceptional-status= defaults to
556556
=clj-http.client/unexceptional-status?=.
@@ -876,7 +876,7 @@ HTTP responses other than =#{200 201 202 203 204 205 206 207 300 301 302 303 304
876876
;; Or ignore an unknown host (methods return 'nil' if this is set to
877877
;; true and the host does not exist:
878878
(client/get "http://example.invalid" {:ignore-unknown-host? true})
879-
;; Or customize the http statuses that will throw:
879+
;; Or customize the http statuses that will not throw:
880880
(client/get "http://example.com/broken" {:unexceptional-status #(<= 200 % 299)})
881881
#+END_SRC
882882

0 commit comments

Comments
 (0)