From 84046d6f7c4105c8a920f4c36f6e01cc585eb666 Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Fri, 11 Feb 2022 14:14:04 -0800 Subject: [PATCH] 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 --- cmd/derper/bootstrap_dns.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/derper/bootstrap_dns.go b/cmd/derper/bootstrap_dns.go index 9e3356258..0a1b3a157 100644 --- a/cmd/derper/bootstrap_dns.go +++ b/cmd/derper/bootstrap_dns.go @@ -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,