diff --git a/cmd/syncthing/gui.go b/cmd/syncthing/gui.go index 3a18a639..7442e95e 100644 --- a/cmd/syncthing/gui.go +++ b/cmd/syncthing/gui.go @@ -451,6 +451,7 @@ func restPostDiscoveryHint(w http.ResponseWriter, r *http.Request) { } func restGetDiscovery(w http.ResponseWriter, r *http.Request) { + w.Header().Set("Content-Type", "application/json; charset=utf-8") registry := discoverer.All() devices := make(map[string][]struct{}, len(registry)) for device, addrs := range registry {