Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
komuw committed Jun 18, 2024
1 parent 6f0c674 commit 810a700
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions middleware/csp.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ func csp(wrappedHandler http.Handler, domain string) http.HandlerFunc {
func GetCspNonce(c context.Context) string {
v := c.Value(cspCtxKey)
if v != nil {
s, ok := v.(string)
if ok {
if s, ok := v.(string); ok {
return s
}
}
Expand Down

0 comments on commit 810a700

Please sign in to comment.