ya funcionando el mcp, vamos a continuar
This commit is contained in:
9
mcp/node_modules/negotiator/index.js
generated
vendored
9
mcp/node_modules/negotiator/index.js
generated
vendored
@@ -44,13 +44,14 @@ Negotiator.prototype.charsets = function charsets(available) {
|
||||
return preferredCharsets(this.request.headers['accept-charset'], available);
|
||||
};
|
||||
|
||||
Negotiator.prototype.encoding = function encoding(available) {
|
||||
var set = this.encodings(available);
|
||||
Negotiator.prototype.encoding = function encoding(available, opts) {
|
||||
var set = this.encodings(available, opts);
|
||||
return set && set[0];
|
||||
};
|
||||
|
||||
Negotiator.prototype.encodings = function encodings(available) {
|
||||
return preferredEncodings(this.request.headers['accept-encoding'], available);
|
||||
Negotiator.prototype.encodings = function encodings(available, options) {
|
||||
var opts = options || {};
|
||||
return preferredEncodings(this.request.headers['accept-encoding'], available, opts.preferred);
|
||||
};
|
||||
|
||||
Negotiator.prototype.language = function language(available) {
|
||||
|
||||
Reference in New Issue
Block a user