mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 23:49:45 -05:00
Don't send content type headers when no body is available.
This commit is contained in:
parent
decd5a905e
commit
87adadd445
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@
|
|||
(defn- send!
|
||||
[{:keys [body headers auth method] :or {auth true} :as request}]
|
||||
(let [headers (merge {}
|
||||
(when (not= method :get) +headers+)
|
||||
(when body +headers+)
|
||||
headers
|
||||
(when auth (auth-headers)))
|
||||
request (merge (assoc request :headers headers)
|
||||
|
|
Loading…
Add table
Reference in a new issue