Skip to content
Myr

refactored req.xhr

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by TJ Holowaychuk · committed by TJ Holowaychuk · parent 6ab61d0 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:lib/request.js+2 added-1 removed
357 unmodified lines
358 * @api public359 */360361req.__defineGetter__('xhr', function(){362 var val = this.get('X-Requested-With') || '';362 return 'xmlhttprequest' == this.header('X-Requested-With', '').toLowerCase();363 return 'xmlhttprequest' == val.toLowerCase();364});