这是indexloc提供的服务,不要输入任何密码
Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charset.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var CharsetReader func(charset string, input io.Reader) (io.Reader, error)
// charsetReader calls CharsetReader if non-nil.
func charsetReader(charset string, input io.Reader) (io.Reader, error) {
charset = strings.ToLower(charset)
if charset == "utf-8" || charset == "us-ascii" {
if charset == "utf-8" || charset == "us-ascii" || charset == "ascii"{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep the space before {

return input, nil
}
if CharsetReader != nil {
Expand Down