mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-08-27 21:59:49 +00:00
Fix HTTP header time zone
This commit is contained in:
+1
-1
@@ -145,7 +145,7 @@ func (s *Server) generateResponseIETF(w http.ResponseWriter, r *http.Request, re
|
|||||||
}
|
}
|
||||||
|
|
||||||
w.Header().Set("Content-Type", "application/dns-udpwireformat")
|
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("Date", now)
|
||||||
w.Header().Set("Last-Modified", now)
|
w.Header().Set("Last-Modified", now)
|
||||||
if respJSON.HaveTTL {
|
if respJSON.HaveTTL {
|
||||||
|
|||||||
Reference in New Issue
Block a user