feat: add ponyfills to support multipart requests on android webview versions < 50 and iOS versions < 13.2

This commit is contained in:
Sefa Ilkimen
2019-11-18 02:01:02 +01:00
parent 3e5c941fdd
commit 7a09fa9460
12 changed files with 184 additions and 36 deletions
+3 -2
View File
@@ -1,4 +1,4 @@
module.exports = function init(exec, cookieHandler, urlUtil, helpers, globalConfigs, errorCodes) {
module.exports = function init(exec, cookieHandler, urlUtil, helpers, globalConfigs, errorCodes, ponyfills) {
var publicInterface = {
getBasicAuthHeader: getBasicAuthHeader,
useBasicAuth: useBasicAuth,
@@ -29,7 +29,8 @@ module.exports = function init(exec, cookieHandler, urlUtil, helpers, globalConf
head: head,
uploadFile: uploadFile,
downloadFile: downloadFile,
ErrorCode: errorCodes
ErrorCode: errorCodes,
ponyfills: ponyfills
};
function getBasicAuthHeader(username, password) {