-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: pass matching mime type to xmldom
If the `Content-Type` header starts with one of the mime types supported by `DOMParser`, that mime type will be used instead of `text/xml`. The default is still `text/xml` for cases when the Header is not present or contains a mime type that is not in the list. This PR also sends all the mime types accepted as the `Acceppt` header.
- Loading branch information
Showing
1 changed file
with
9 additions
and
10 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