Comparing version 4.1.0-beta4 to 4.1.0-beta5
@@ -71,3 +71,3 @@ 'use strict' | ||
break | ||
case 'maxBody': | ||
@@ -287,3 +287,20 @@ case 'addIP': | ||
if (!self.hostProxy[c.host] || !self.hostProxy[c.host][c.routepath]) { | ||
let host = c.host | ||
let hind = c.host.length - 1 | ||
if (hind > 4) { | ||
let eind = hind - 5 | ||
while (hind >= eind) { | ||
if (c.host[hind] === ':') { | ||
host = c.host.substring(0, hind) | ||
break | ||
} | ||
hind -= 1 | ||
} | ||
} | ||
if (!self.hostProxy[host] || !self.hostProxy[host][c.routepath]) { | ||
if (self.full) { | ||
@@ -369,3 +386,6 @@ return c.send(error_502_text, 502) | ||
app.use(this.mid(), {pre: true, group: `titbit_h2_proxy`}) | ||
app.use(this.mid(), { | ||
pre: true, | ||
group: `titbit_h2_proxy` | ||
}) | ||
@@ -372,0 +392,0 @@ } |
{ | ||
"name": "gohttp", | ||
"version": "4.1.0-beta4", | ||
"version": "4.1.0-beta5", | ||
"description": "http & https client for HTTP/1.1 and HTTP/2", | ||
@@ -5,0 +5,0 @@ "main": "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
82151
1851