Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 11, 18:30 UTC
chore: fix golangci-lint error G602 in caddyhttp (#7334)
Cooper de Nicola committed
Nov 2, 2025 at 19:04 UTC
895b56063afcf8b94f4a2a785cbd7c2ac58dd162
1 file changed
+1
-1
modules/caddyhttp/reverseproxy/fastcgi/writer.go
+1
-1
@@ -112,7 +112,7 @@ func encodeSize(b []byte, size uint32) int {
112
binary.BigEndian.PutUint32(b, size)
113
return 4
114
}
115
- b[0] = byte(size)
115
+ b[0] = byte(size) //nolint:gosec // false positive; b is made 8 bytes long, then this function is always called with b being at least 4 or 1 byte long
116
return 1
117
}
118