mirror of
https://github.com/avwo/whistle.git
synced 2026-10-28 22:59:50 +08:00
fix: ERR_HTTP2_PROTOCOL_ERROR
This commit is contained in:
+1
-1
@@ -747,7 +747,7 @@ function toHttp1(req, res) {
|
||||
options.protocol = null;
|
||||
options.hostname = null;
|
||||
options.agent = false;
|
||||
options.host = config.host;
|
||||
options.host = config.host || LOCALHOST;
|
||||
options.port = config.port;
|
||||
options.headers = headers;
|
||||
if (isH2) {
|
||||
|
||||
Reference in New Issue
Block a user