Skip to content

Commit e7880b7

Browse files
authored
Update ctx.go
1 parent 16e9ab4 commit e7880b7

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
@@ -881,7 +881,7 @@ func (c *Ctx) Is(extension string) bool {
881881
if i := strings.IndexByte(ct, ';'); i != -1 {
882882
ct = ct[:i]
883883
}
884-
ct = strings.TrimSpace(ct)
884+
ct = utils.Trim(ct, ' ')
885885
return utils.EqualFold(ct, extensionHeader)
886886
}
887887

0 commit comments

Comments
 (0)