Skip to content

Commit 28c63e2

Browse files
committed
Fix unknown-ALPN fallback logic
1 parent 2e18349 commit 28c63e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/http-combo-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export async function createComboServer(options: ComboServerOptions): Promise<De
193193
if (preferredProtocol) return preferredProtocol;
194194

195195
// If the client only offers protocols that we don't understand, shrug and accept:
196-
else return clientProtocols[1];
196+
else return clientProtocols[0];
197197
}
198198
} : {
199199
// In Node versions without ALPNCallback, we just set preferences directly:

0 commit comments

Comments
 (0)