Skip to content
Myr

Added render() status option support. Closes #425

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 afb65c7 · 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/express/view.js+2 added-1 removed
168 unmodified lines
169 *170 * - `context|scope` Template evaluation context (`this`)171 * - `locals` Object containing local variables172 * - `debug` Output debugging information173 * - `status` Response status code, defaults to 200174 *175 * @param {String} view176 * @param {Object|Function} options or callback function177 * @param {Function} fn
117 unmodified lines
295 return str;296 } else if (fn) {297 fn(null, str);298 } else {298 self.send(str);299 self.send(str, {}, options.status);300 }301};