From cefa3a6ba89426f4cb3c399932c8e2cb44b11ecc Mon Sep 17 00:00:00 2001 From: Star Brilliant Date: Wed, 21 Mar 2018 02:52:22 +0800 Subject: [PATCH] Fix HTTP header time zone --- doh-server/ietf.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doh-server/ietf.go b/doh-server/ietf.go index f35a256..2bede2d 100644 --- a/doh-server/ietf.go +++ b/doh-server/ietf.go @@ -145,7 +145,7 @@ func (s *Server) generateResponseIETF(w http.ResponseWriter, r *http.Request, re } w.Header().Set("Content-Type", "application/dns-udpwireformat") - now := time.Now().Format(http.TimeFormat) + now := time.Now().UTC().Format(http.TimeFormat) w.Header().Set("Date", now) w.Header().Set("Last-Modified", now) if respJSON.HaveTTL {