Skip to content

Commit bc63367

Browse files
authored
Update ctx.go
1 parent 35b68ea commit bc63367

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ctx.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ func (c *DefaultCtx) Is(extension string) bool {
887887
if i := strings.IndexByte(ct, ';'); i != -1 {
888888
ct = ct[:i]
889889
}
890-
ct = strings.TrimSpace(ct)
890+
ct = utils.Trim(ct, ' ')
891891
return utils.EqualFold(ct, extensionHeader)
892892
}
893893

0 commit comments

Comments
 (0)