Skip to content

Commit

Permalink
Use gzip encoding for HTTP requests
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyagupta committed Nov 21, 2018
1 parent 3a47f59 commit a4a7a56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deftask.lisp
Expand Up @@ -50,7 +50,9 @@
:method method
:basic-authorization (list "bearer" *token*)
:parameters (when (eql method :get) parameters)
:content content)
:additional-headers `(("Accept-Encoding" . "gzip"))
:content content
:decode-content t)
(declare (ignore response-uri stream closedp))
(if (and (>= status-code 200) (< status-code 300))
(let ((content-type (cdr (assoc :content-type headers))))
Expand Down

0 comments on commit a4a7a56

Please sign in to comment.