Skip to content
Myr

Remove res.vary() (no arguments) signature

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

closes #2943

authored by Mike Tunnicliffe · committed by Douglas Christopher Wilson · parent 1dbfee6 · Browse files · 3 files+5 added−9 removed
This commit

State

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

Diff stats

3 files+5 added−9 removed

  • tests:+2 added−3 removed
  • other:+3 added−6 removed

3 files+5 added−9 removed

modified:lib/response.js-6 removed
806 unmodified lines
807 * @public808 */809810res.vary = function(field){811 // checks for back-compat812 if (!field || (Array.isArray(field) && !field.length)) {813 deprecate('res.vary(): Provide a field name');814 return this;815 }816811 vary(this, field);812813 return this;814};
143 unmodified lines
modified:test/res.vary.js+2 added-3 removed
modified:History.md+3 added
1 unmodified line
2===34This incorporates all changes after 4.13.1 up to 4.14.0.56 * remove:7 - `res.vary()` (no arguments) -- provide a field name as an argument895.0.0-alpha.2 / 2015-07-0610==========================1112This is the second Express 5.0 alpha release, based off 4.13.1 and includes
3175 unmodified lines