mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-02 03:48:26 +00:00
Set content type on discovery rest request.
This commit is contained in:
parent
fffae9a741
commit
609294deee
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user