parent
b42c3d1ba0
commit
7fc0e0378c
3 changed files with 39 additions and 0 deletions
|
|
@ -2171,6 +2171,14 @@
|
|||
if (maybeXhr != null) xhr = maybeXhr
|
||||
}
|
||||
|
||||
if (isObject(options.headers)) {
|
||||
for (var header in options.headers) {
|
||||
if (hasOwn.call(options.headers, header)) {
|
||||
xhr.setRequestHeader(header, options.headers[header])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var data = options.method === "GET" || !options.data ? "" : options.data
|
||||
|
||||
if (data && !isString(data) && data.constructor !== global.FormData) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue