Skip to content

Commit 0b76f44

Browse files
committed
fix(lint): resolve gosec G112 issue
- Add ReadHeaderTimeout to http.Server to prevent Slowloris attacks
1 parent 096ca22 commit 0b76f44

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

internal/server/server.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"ghcr-exporter/internal/config"
1010
"ghcr-exporter/internal/metrics"
1111
"ghcr-exporter/internal/version"
12+
1213
"github.com/gin-gonic/gin"
1314
"github.com/prometheus/client_golang/prometheus/promhttp"
1415
)

0 commit comments

Comments
 (0)