Merge pull request #1123 from stendler/json-firebase-cache

feat(server): add Cache and Firebase as keys to JSON publishing
This commit is contained in:
Philipp C. Heckel
2025-05-25 15:24:51 -04:00
committed by GitHub
3 changed files with 53 additions and 0 deletions

View File

@@ -1868,6 +1868,12 @@ func (s *Server) transformBodyJSON(next handleFunc) handleFunc {
if m.Call != "" {
r.Header.Set("X-Call", m.Call)
}
if m.Cache != "" {
r.Header.Set("X-Cache", m.Cache)
}
if m.Firebase != "" {
r.Header.Set("X-Firebase", m.Firebase)
}
return next(w, r, v)
}
}