-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: handle mimetypes with encodings
As reported in #112 and demonstrated in the test (prior to fixing) we didn't handle mimetypes correctly if they contained an encoding. For instance `text/html; charset=utf-8`. The fix is to split the string on the semicolon, and only take the mimetype (appearing before the first semicolon) for the matching. This closes #112.
- Loading branch information
1 parent
1393251
commit b9d8d7c
Showing
2 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters