Skip to content
Myr

Fixed header()

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

authored by visionmedia · committed by visionmedia · parent abe77db · Browse files · 2 files+4 added−5 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+4 added−5 removed

  • tests:+3 added−4 removed
  • other:+1 added−1 removed

2 files+4 added−5 removed

modified:lib/express/helpers.js+1 added-1 removed
117 unmodified lines
118 * @api public119 */120121exports.header = function(key, val) {122 return value === undefined ?122 return val === undefined ?123 Express.server.request.headers[key.toLowerCase()] :124 Express.server.response.headers[key.toLowerCase()] = val125}126
124 unmodified lines
modified:spec/spec.core.helpers.js+3 added-4 removed