Skip to content

Commit e15c8f3

Browse files
committed
Fixing example calls to http/get.
1 parent 24984ae commit e15c8f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ body, you can use the `:decode-body-headers` option:
283283

284284
```clojure
285285
;; without decoding body headers (defaults to off):
286-
(:headers (http/get "http://www.yomiuri.co.jp/"))
286+
(:headers (client/get "http://www.yomiuri.co.jp/"))
287287
=> {"server" "Apache",
288288
"content-encoding" "gzip",
289289
"content-type" "text/html",
@@ -296,7 +296,7 @@ body, you can use the `:decode-body-headers` option:
296296

297297
;; with decoding body headers, notice the content-type,
298298
;; content-style-type and content-script-type headers:
299-
(:headers (http/get "http://www.yomiuri.co.jp/" {:decode-body-headers true}))
299+
(:headers (client/get "http://www.yomiuri.co.jp/" {:decode-body-headers true}))
300300
=> {"server" "Apache",
301301
"content-encoding" "gzip",
302302
"content-script-type" "text/javascript",
@@ -314,7 +314,7 @@ This can be used to have clj-http correctly interpret the body's
314314
charset by using:
315315

316316
```clojure
317-
(http/get "http://www.yomiuri.co.jp/" {:decode-body-headers true :as :auto})
317+
(client/get "http://www.yomiuri.co.jp/" {:decode-body-headers true :as :auto})
318318
=> ;; correctly formatted :body (Shift_JIS charset instead of UTF-8)
319319
```
320320

0 commit comments

Comments
 (0)