mirror of
https://github.com/penpot/penpot.git
synced 2025-05-03 16:15:54 +02:00
🐛 Send frontend version on worker http requests
This commit is contained in:
parent
b7d7cf233a
commit
3f85e89f62
1 changed files with 3 additions and 2 deletions
|
@ -50,7 +50,8 @@
|
|||
[headers]
|
||||
(into {} (map vec) (seq (.entries ^js headers))))
|
||||
|
||||
(def default-headers
|
||||
(defn default-headers
|
||||
[]
|
||||
{"x-frontend-version" (:full cfg/version)})
|
||||
|
||||
(defn fetch
|
||||
|
@ -74,7 +75,7 @@
|
|||
|
||||
headers (cond-> headers
|
||||
(not omit-default-headers)
|
||||
(d/merge default-headers))
|
||||
(merge (default-headers)))
|
||||
|
||||
headers (-update-headers body headers)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue