babashka / babashka.curl

A This library is mostly replaced by https://github.com/babashka/http-client
Eclipse Public License 1.0
121 stars 9 forks source link

Pass --compressed by default. #28

Closed borkdude closed 3 years ago

borkdude commented 3 years ago

See test:

(deftest compressed-test
  (is (-> (curl/get "https://api.stackexchange.com/2.2/sites")
          :body (json/parse-string true) :items))
  (is (thrown?
       Exception
       (-> (curl/get "https://api.stackexchange.com/2.2/sites"
                     {:compressed false})
           :body (json/parse-string true) :items))))