From 609294deee708263a317fe7737b2a17adab11500 Mon Sep 17 00:00:00 2001 From: Phill Luby Date: Wed, 15 Oct 2014 19:23:52 +0100 Subject: [PATCH] Set content type on discovery rest request. --- cmd/syncthing/gui.go | 1 + 1 file changed, 1 insertion(+) 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 {