Skip to content
Myr

Remove req.acceptsLanguage

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 59f2b40 · Browse files · 3 files+1 added−57 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−57 removed

  • tests:+0 added−53 removed
  • other:+1 added−4 removed

3 files+1 added−57 removed

modified:lib/request.js-4 removed
1 unmodified line
2 * Module dependencies.3 */45var accepts = require('accepts');6var deprecate = require('depd')('express');6var isIP = require('net').isIP;7var typeis = require('type-is');8var http = require('http');9var fresh = require('fresh');
136 unmodified lines
146 var accept = accepts(this);147 return accept.languages.apply(accept, arguments);148};149151req.acceptsLanguage = deprecate.function(req.acceptsLanguages,152 'req.acceptsLanguage: Use acceptsLanguages instead');153150/**151 * Parse Range header field,152 * capping to the given `size`.153 *
331 unmodified lines
deleted:test/req.acceptsLanguage.js-53 removed
modified:History.md+1 added
3 unmodified lines
4 * remove:5 - `app.del` - use `app.delete`6 - `req.acceptsCharset` - use `req.acceptsCharsets`7 - `req.acceptsEncoding` - use `req.acceptsEncodings`8 - `req.acceptsLanguage` - use `req.acceptsLanguages`9 - `res.json(obj, status)` signature - use `res.json(status, obj)`10 - `res.jsonp(obj, status)` signature - use `res.jsonp(status, obj)`11 - `res.send(body, status)` signature - use `res.send(status, body)`12 - `express.query` middleware
2456 unmodified lines