Skip to content
Myr

Remove acceptsEncoding

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

authored by Douglas Christopher Wilson · committed by Douglas Christopher Wilson · parent 7f25328 · Browse files · 3 files+1 added−39 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+1 added−39 removed

  • tests:+0 added−36 removed
  • other:+1 added−3 removed

3 files+1 added−39 removed

modified:lib/request.js-3 removed
118 unmodified lines
119 var accept = accepts(this);120 return accept.encodings.apply(accept, arguments);121};122123req.acceptsEncoding = deprecate.function(req.acceptsEncodings,124 'req.acceptsEncoding: Use acceptsEncodings instead');125123/**124 * Check if the given `charset`s are acceptable,125 * otherwise you should respond with 406 "Not Acceptable".126 *
362 unmodified lines
deleted:test/req.acceptsEncoding.js-36 removed
modified:History.md+1 added
2 unmodified lines
34 * remove:5 - `app.del` - use `app.delete`6 - `req.acceptsCharset` - use `req.acceptsCharsets`7 - `req.acceptsEncoding` - use `req.acceptsEncodings`8 - `res.json(obj, status)` signature - use `res.json(status, obj)`9 - `res.jsonp(obj, status)` signature - use `res.jsonp(status, obj)`10 - `res.send(body, status)` signature - use `res.send(status, body)`11 - `express.query` middleware
2456 unmodified lines