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

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

This reverts commit 60abeb027b700e7fa40aa815da8a08383372aca7.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
Josh Bleecher Snyder 2022-02-11 14:14:04 -08:00 committed by Josh Bleecher Snyder
parent ec62217f52
commit 84046d6f7c

View File

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