Skip to content

Commit

Permalink
Return TTL: 0
Browse files Browse the repository at this point in the history
  • Loading branch information
karmanyaahm committed May 22, 2023
1 parent 597e82c commit ed0e20c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ func proxyHandler(h Proxy) HttpHandler {
respType = "method not allowed"
}
w.WriteHeader(code)
w.Header().Add("TTL", "0")
log.Println(r.Method, r.Host, r.URL.Path, r.RemoteAddr, nread, "bytes read;", r.UserAgent(), respType, code)

return
Expand Down

0 comments on commit ed0e20c

Please sign in to comment.