Skip to content

Commit 3a79663

Browse files
committed
Fix control couple lint
1 parent bc631e6 commit 3a79663

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

coderd/httpmw/csp.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ const (
4343
// CSPHeaders returns a middleware that sets the Content-Security-Policy header
4444
// for coderd. It takes a function that allows adding supported external websocket
4545
// hosts. This is primarily to support the terminal connecting to a workspace proxy.
46+
//
47+
//nolint:revive
4648
func CSPHeaders(telemetry bool, websocketHosts func() []string) func(next http.Handler) http.Handler {
4749
return func(next http.Handler) http.Handler {
4850
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {

0 commit comments

Comments
 (0)