Skip to content

Commit 15be9c1

Browse files
authored
Merge pull request #43 from t0rr3sp3dr0/patch-1
Support US-ASCII Charset
2 parents 5d52fb9 + 6a5e27d commit 15be9c1

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)