Skip to content
Myr

Normalized another header name

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

authored by visionmedia · committed by visionmedia · parent 2e3f806 · Browse files · 1 file+3 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

1 file+3 added−2 removed

  • other:+3 added−2 removed

1 file+3 added−2 removed

modified:lib/express/request.js+3 added-2 removed
133 unmodified lines
134 * @api public135 */136137 get isXHR() {138 return (this.header('x-requested-with') || '').lowercase === 'xmlhttprequest'138 return (this.header('X-Requested-With') || '').lowercase === 'xmlhttprequest'139 },140141 /**142 * Set response status to _code_.
93 unmodified lines
236 self.trigger('response', function(err){237 if (err)238 stream.destroy(),239 self.error(err, callback)240 else240 self.response.end()241 self.response.end()242 }, true)243 })244 },245
165 unmodified lines