Skip to content

Commit 6a5e27d

Browse files
authored
support us-ascii charset
1 parent 5d52fb9 commit 6a5e27d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

http/data_source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func isContentTypeAllowed(contentType string) bool {
124124
for _, r := range allowedContentTypes {
125125
if r.MatchString(parsedType) {
126126
charset := strings.ToLower(params["charset"])
127-
return charset == "" || charset == "utf-8"
127+
return charset == "" || charset == "utf-8" || charset == "us-ascii"
128128
}
129129
}
130130

0 commit comments

Comments
 (0)