i18next-express-middleware
Advanced tools
Comparing version 1.9.0 to 1.9.1
@@ -0,1 +1,5 @@ | ||
### 1.9.1 | ||
- only setHeader if lng has value | ||
### 1.9.0 | ||
@@ -2,0 +6,0 @@ |
@@ -51,3 +51,3 @@ 'use strict'; | ||
if (!res.headersSent) { | ||
if (!res.headersSent && lng) { | ||
res.setHeader('Content-Language', lng); | ||
@@ -68,3 +68,3 @@ } | ||
req.language = req.locale = req.lng = lng; | ||
if (!res.headersSent) { | ||
if (!res.headersSent && lng) { | ||
res.setHeader('Content-Language', lng); | ||
@@ -71,0 +71,0 @@ } |
{ | ||
"name": "i18next-express-middleware", | ||
"version": "1.9.0", | ||
"version": "1.9.1", | ||
"description": "express middleware for i18next", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
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
33037