Set content type on discovery rest request.

This commit is contained in:
Phill Luby 2014-10-15 19:23:52 +01:00
parent fffae9a741
commit 609294deee

View File

@ -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 {