Return available features in header of backend responses.
The header "X-Spreed-Signaling-Features" will contain a comma-separated list of feature flags.
This commit is contained in:
parent
70b37364d3
commit
2f8e7f9f66
|
@ -166,6 +166,7 @@ func (b *BackendServer) Start(r *mux.Router) error {
|
|||
func (b *BackendServer) setComonHeaders(f func(http.ResponseWriter, *http.Request)) func(http.ResponseWriter, *http.Request) {
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Set("Server", "nextcloud-spreed-signaling/"+b.version)
|
||||
w.Header().Set("X-Spreed-Signaling-Features", strings.Join(b.hub.info.Features, ", "))
|
||||
f(w, r)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue