mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-10-23 13:02:48 +00:00
Fix panic with debug_http_headers
This commit is contained in:
1 parent
85d81d3d0b
commit
c85ef45840
2 files changed
+6
-4
No files matched your search
@@ -114,7 +114,7 @@ func (s *Server) handlerFunc(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
for _, header := range s.conf.DebugHTTPHeaders {
|
||||
if value:= r.Header.Get(header); value != "" {
|
||||
if value := r.Header.Get(header); value != "" {
|
||||
log.Printf("%s: %s\n", header, value)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user