Remove unnecessary comments
This commit is contained in:
@ -71,10 +71,6 @@ func CSRF(config CSRFConfig) Middleware {
|
||||
if config.Cookie.Domain != "" {
|
||||
options = append(options, csrf.Domain(config.Cookie.Domain))
|
||||
}
|
||||
|
||||
// Only check boolean fields if they've been explicitly set
|
||||
// For cookie security settings, we only set them if they're being turned off
|
||||
// since the secure defaults should be used otherwise
|
||||
if !config.Cookie.Secure {
|
||||
options = append(options, csrf.Secure(false))
|
||||
}
|
||||
|
Reference in New Issue
Block a user