mirror of
https://github.com/caddyserver/caddy.git
synced 2026-06-04 21:15:17 -04:00
run golangci-lint run --fix
Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user