Skip to content

Commit

Permalink
Merge pull request #43 from t0rr3sp3dr0/patch-1
Browse files Browse the repository at this point in the history
Support US-ASCII Charset
  • Loading branch information
paultyng committed Sep 30, 2020
2 parents 5d52fb9 + 6a5e27d commit 15be9c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func isContentTypeAllowed(contentType string) bool {
for _, r := range allowedContentTypes {
if r.MatchString(parsedType) {
charset := strings.ToLower(params["charset"])
return charset == "" || charset == "utf-8"
return charset == "" || charset == "utf-8" || charset == "us-ascii"
}
}

Expand Down

0 comments on commit 15be9c1

Please sign in to comment.