mirror of
https://github.com/penpot/penpot.git
synced 2026-09-18 18:06:14 +00:00
🐛 Send frontend version on worker http requests
This commit is contained in:
parent
b7d7cf233a
commit
3f85e89f62
@ -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…
x
Reference in New Issue
Block a user