Skip to content
Myr

Added: `res.format()` sets Vary: Accept

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 8dc0015 · Browse files · 2 files+12 added−0 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+12 added−0 removed

  • tests:+10 added−0 removed
  • other:+2 added−0 removed

2 files+12 added−0 removed

modified:lib/response.js+2 added
323 unmodified lines
324 , req = this.req325 , next = req.next326 , key = req.accepts(keys);327328 this.set('Vary', 'Accept');329330 if (key) {331 this.set('Content-Type', normalizeType(key));332 obj[key](req, this, next);333 } else {
285 unmodified lines
modified:test/res.format.js+10 added