run golangci-lint run --fix

Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
This commit is contained in:
Mohammed Al Sahaf
2025-03-25 22:55:56 +03:00
parent fb467eb9a5
commit 9e284a5b0b
31 changed files with 67 additions and 74 deletions
+1 -1
View File
@@ -210,7 +210,7 @@ type linkPusher struct {
}
func (lp linkPusher) WriteHeader(statusCode int) {
if links, ok := lp.ResponseWriter.Header()["Link"]; ok {
if links, ok := lp.Header()["Link"]; ok {
// only initiate these pushes if it hasn't been done yet
if val := caddyhttp.GetVar(lp.request.Context(), pushedLink); val == nil {
if c := lp.handler.logger.Check(zapcore.DebugLevel, "pushing Link resources"); c != nil {