Comparing version 4.1.0-beta9 to 4.1.0
@@ -66,6 +66,8 @@ 'use strict' | ||
this.config = {} | ||
for (let k in options) { | ||
switch (k) { | ||
case 'config': | ||
this.setHostProxy(options[k]) | ||
this.config = options[k] | ||
break | ||
@@ -83,2 +85,3 @@ | ||
this.setHostProxy(this.config) | ||
@@ -258,3 +261,6 @@ } | ||
} | ||
} else { | ||
pxybalance.stepIndex += 1 | ||
} | ||
} | ||
@@ -331,2 +337,6 @@ | ||
if (pr.headers) { | ||
for (let k in pr.headers) c.headers[k] = pr.headers[k] | ||
} | ||
let stm = hii.session.request(c.headers) | ||
@@ -333,0 +343,0 @@ |
{ | ||
"name": "gohttp", | ||
"version": "4.1.0-beta9", | ||
"version": "4.1.0", | ||
"description": "http & https client for HTTP/1.1 and HTTP/2", | ||
@@ -25,3 +25,5 @@ "main": "index.js", | ||
"client", | ||
"http2client" | ||
"http2client", | ||
"proxy", | ||
"http2proxy" | ||
], | ||
@@ -28,0 +30,0 @@ "author": "BraveWang", |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
82374
1857
1