rjweb-server
Advanced tools
Comparing version 9.0.1 to 9.0.2
@@ -0,1 +1,5 @@ | ||
## 9.0.2 | ||
- Split and trim the proxy header | ||
## 9.0.1 | ||
@@ -2,0 +6,0 @@ |
@@ -55,3 +55,3 @@ "use strict"; | ||
if (context.ip.isProxied) { | ||
context.ip.value = context.headers.get(context.global.options.proxy.header, context.ip.value); | ||
context.ip.value = context.headers.get(context.global.options.proxy.header, context.ip.value).split(',')[0].trim(); | ||
} | ||
@@ -58,0 +58,0 @@ if (context.ip.isProxied && context.global.options.proxy.ips.validate) { |
{ | ||
"name": "rjweb-server", | ||
"version": "9.0.1", | ||
"version": "9.0.2", | ||
"description": "Easy and Robust Way to create a Web Server with Many Easy-to-use Features in NodeJS", | ||
@@ -5,0 +5,0 @@ "main": "./lib/cjs/index.js", |
@@ -50,3 +50,3 @@ import { parseContent, version } from "../index"; | ||
if (context.ip.isProxied) { | ||
context.ip.value = context.headers.get(context.global.options.proxy.header, context.ip.value); | ||
context.ip.value = context.headers.get(context.global.options.proxy.header, context.ip.value).split(',')[0].trim(); | ||
} | ||
@@ -53,0 +53,0 @@ if (context.ip.isProxied && context.global.options.proxy.ips.validate) { |
{ | ||
"name": "rjweb-server", | ||
"version": "9.0.1", | ||
"version": "9.0.2", | ||
"description": "Easy and Robust Way to create a Web Server with Many Easy-to-use Features in NodeJS", | ||
@@ -5,0 +5,0 @@ "main": "./lib/cjs/index.js", |
{ | ||
"name": "rjweb-server", | ||
"version": "9.0.1", | ||
"version": "9.0.2", | ||
"description": "Easy and Robust Way to create a Web Server with Many Easy-to-use Features in NodeJS", | ||
@@ -5,0 +5,0 @@ "main": "./lib/cjs/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
523324