Permalink
Browse files

Ajax: add ability to set `xhr()` factory per-request

  • Loading branch information...
1 parent be161c9 commit 912793db1d5fe94347ae70dd46644a3e0c609347 Sebastien Cante committed with mislav Dec 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ajax.js
View
@@ -181,7 +181,7 @@
var mime = settings.accepts[dataType],
baseHeaders = { },
protocol = /^([\w-]+:)\/\//.test(settings.url) ? RegExp.$1 : window.location.protocol,
- xhr = $.ajaxSettings.xhr(), abortTimeout
+ xhr = settings.xhr(), abortTimeout
if (!settings.crossDomain) baseHeaders['X-Requested-With'] = 'XMLHttpRequest'
if (mime) {

0 comments on commit 912793d

Please sign in to comment.