fix: ERR_HTTP2_PROTOCOL_ERROR

This commit is contained in:
avwo
2020-01-17 17:15:20 +08:00
parent 956765b694
commit 1d40559b34
+1 -1
View File
@@ -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) {