Skip to content
Myr

case sensitivity test

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 af46df7 · Browse files · 2 files+17 added−2 removed
This commit

State

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

Diff stats

2 files+17 added−2 removed

  • tests:+16 added−0 removed
  • other:+1 added−2 removed

2 files+17 added−2 removed

modified:lib/request.js+1 added-2 removed
366 unmodified lines
367 * @api public368 */369370req.__defineGetter__('xhr', function(){371 return this.header('X-Requested-With', '')372 .toLowerCase() == 'xmlhttprequest';371 return 'xmlhttprequest' == this.header('X-Requested-With', '').toLowerCase();372});
modified:test/req.xhr.js+16 added