forked from github/debug-repo
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for ArrayBufferView as POST body
Section 6.2 of the spec says that body can be BufferSource. BufferSource is defined in https://heycam.github.io/webidl/#BufferSource: > The BufferSource typedef is used to represent objects that are either > themselves an ArrayBuffer or which provide a view on to an ArrayBuffer. Furthermore, passing an ArrayBuffer directly to XMLHttpRequest is considered deprecated and Safari throws a warning about it. This makes it even more important to support ArrayBufferView in fetch. The fallback for `ArrayBuffer.isView` is provided for IE 10, which doesn't implement the method.
- Loading branch information
Showing
2 changed files
with
42 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
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