Send URLSearchParams as request body without extra configuration (#2695)

This commit is contained in:
James Cote 2022-01-31 04:12:02 -05:00 committed by GitHub
parent ab4b21dacc
commit 99c6d813d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 3 deletions

View file

@ -14,6 +14,7 @@ module.exports = function() {
function FormData() {}
var $window = {
FormData: FormData,
URLSearchParams: URLSearchParams,
XMLHttpRequest: function XMLHttpRequest() {
var args = {}
var headers = {}