mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-04-26 03:10:29 +02:00
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) {
|
func (b *BackendServer) setComonHeaders(f func(http.ResponseWriter, *http.Request)) func(http.ResponseWriter, *http.Request) {
|
||||||
return func(w http.ResponseWriter, r *http.Request) {
|
return func(w http.ResponseWriter, r *http.Request) {
|
||||||
w.Header().Set("Server", "nextcloud-spreed-signaling/"+b.version)
|
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)
|
f(w, r)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue