File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
314314charset 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
You can’t perform that action at this time.
0 commit comments