mirror of
https://github.com/syncthing/syncthing.git
synced 2026-05-18 05:37:46 -04:00
Set content type on discovery rest request.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user