negotiator
Advanced tools
Comparing version 0.4.3 to 0.4.4
@@ -59,3 +59,4 @@ module.exports = preferredCharsets; | ||
function preferredCharsets(accept, provided) { | ||
accept = parseAcceptCharset(accept || ''); | ||
// RFC 2616 sec 14.2: no header = * | ||
accept = parseAcceptCharset(accept || '*'); | ||
if (provided) { | ||
@@ -62,0 +63,0 @@ return provided.map(function(type) { |
@@ -70,3 +70,4 @@ module.exports = preferredLanguages; | ||
function preferredLanguages(accept, provided) { | ||
accept = parseAcceptLanguage(accept || ''); | ||
// RFC 2616 sec 14.4: no header = * | ||
accept = parseAcceptLanguage(accept || '*'); | ||
if (provided) { | ||
@@ -73,0 +74,0 @@ |
@@ -88,3 +88,4 @@ module.exports = preferredMediaTypes; | ||
function preferredMediaTypes(accept, provided) { | ||
accept = parseAccept(accept || ''); | ||
// RFC 2616 sec 14.2: no header = */* | ||
accept = parseAccept(accept || '*/*'); | ||
if (provided) { | ||
@@ -91,0 +92,0 @@ return provided.map(function(type) { |
{ | ||
"name": "negotiator", | ||
"description": "HTTP content negotiation", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"author": "Federico Romero <federico.romero@outboxlabs.com>", | ||
@@ -6,0 +6,0 @@ "contributors": ["Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)"], |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15032
386