mirror of
https://github.com/penpot/penpot.git
synced 2025-05-03 14:05:55 +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]
|
[headers]
|
||||||
(into {} (map vec) (seq (.entries ^js headers))))
|
(into {} (map vec) (seq (.entries ^js headers))))
|
||||||
|
|
||||||
(def default-headers
|
(defn default-headers
|
||||||
|
[]
|
||||||
{"x-frontend-version" (:full cfg/version)})
|
{"x-frontend-version" (:full cfg/version)})
|
||||||
|
|
||||||
(defn fetch
|
(defn fetch
|
||||||
|
@ -74,7 +75,7 @@
|
||||||
|
|
||||||
headers (cond-> headers
|
headers (cond-> headers
|
||||||
(not omit-default-headers)
|
(not omit-default-headers)
|
||||||
(d/merge default-headers))
|
(merge (default-headers)))
|
||||||
|
|
||||||
headers (-update-headers body headers)
|
headers (-update-headers body headers)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue