Revert "cmd/derper: stop setting content header in handleBootstrapDNS"

Didn't help enough. We are setting another header anyway. Restore it.

This reverts commit 60abeb027b.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
pull/3916/head
Josh Bleecher Snyder 2 years ago committed by Josh Bleecher Snyder
parent ec62217f52
commit 84046d6f7c

@ -57,6 +57,7 @@ func refreshBootstrapDNS() {
func handleBootstrapDNS(w http.ResponseWriter, r *http.Request) {
bootstrapDNSRequests.Add(1)
w.Header().Set("Content-Type", "application/json")
j, _ := dnsCache.Load().([]byte)
// Bootstrap DNS requests occur cross-regions,
// and are randomized per request,

Loading…
Cancel
Save