mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-05-26 07:34:17 +00:00
Workaround a bug causing Firefox 61-62 to reject responses with Content-Type = application/dns-message
This commit is contained in:
@@ -181,6 +181,7 @@ func (s *Server) generateResponseGoogle(w http.ResponseWriter, r *http.Request,
|
||||
now := time.Now().UTC().Format(http.TimeFormat)
|
||||
w.Header().Set("Date", now)
|
||||
w.Header().Set("Last-Modified", now)
|
||||
w.Header().Set("Vary", "Accept")
|
||||
if respJSON.HaveTTL {
|
||||
if req.isTailored {
|
||||
w.Header().Set("Cache-Control", "private, max-age="+strconv.Itoa(int(respJSON.LeastTTL)))
|
||||
|
||||
Reference in New Issue
Block a user