Skip to content

Commit 0412b78

Browse files
committed
feat!: enable h2 by default
1 parent 0ce57ba commit 0412b78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core/connect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function buildConnector ({ allowH2, useH2c, maxCachedSessions, socketPath, timeo
5151
const options = { path: socketPath, ...opts }
5252
const sessionCache = new SessionCache(maxCachedSessions == null ? 100 : maxCachedSessions)
5353
timeout = timeout == null ? 10e3 : timeout
54-
allowH2 = allowH2 != null ? allowH2 : false
54+
allowH2 = allowH2 != null ? allowH2 : true
5555
return function connect ({ hostname, host, protocol, port, servername, localAddress, httpSocket }, callback) {
5656
let socket
5757
if (protocol === 'https:') {

0 commit comments

Comments
 (0)