-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce get the MIME type for Request/Response
Body's MIME type concept was a bit unclear to folks, so replace it with a more explicit algorithm. This also fixes a "failure-pointer" dereference issue in the formData() method as Body's MIME type could be failure. Get the MIME type returns null or a MIME type as that is better for Blob objects going forward. And while we're here also clarify the return value of extract a MIME type and correct one caller that thought it would return null rather than failure. Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
- Loading branch information
Showing
1 changed file
with
85 additions
and
66 deletions.
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