Skip to content

Commit

Permalink
Merge pull request madrobby#935 from applezqp/master
Browse files Browse the repository at this point in the history
bugfix Android 2.3.x don't set xhrFields
  • Loading branch information
mislav authored Jul 12, 2016
2 parents 9ec56e0 + 3a0499b commit c61f38f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,11 @@
return xhr
}

if (settings.xhrFields) for (name in settings.xhrFields) xhr[name] = settings.xhrFields[name]

var async = 'async' in settings ? settings.async : true
xhr.open(settings.type, settings.url, async, settings.username, settings.password)

if (settings.xhrFields) for (name in settings.xhrFields) xhr[name] = settings.xhrFields[name]

for (name in headers) nativeSetHeader.apply(xhr, headers[name])

if (settings.timeout > 0) abortTimeout = setTimeout(function(){
Expand Down

0 comments on commit c61f38f

Please sign in to comment.