Skip to content

Commit

Permalink
Allow passing settings object in adobe context h2 (#437) (#438)
Browse files Browse the repository at this point in the history
  • Loading branch information
theJC authored Sep 13, 2023
1 parent 1836ca1 commit 6010506
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/h2.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ const request = async (ctx, url, options) => {
}

const enablePush = !!(pushPromiseHandler || pushHandler);
session = connect(origin, { ...connectOptions, settings: { enablePush } });
session = connect(origin, { ...connectOptions, settings: { ...connectOptions.settings, enablePush } });
session.setMaxListeners(1000);
session.setTimeout(idleSessionTimeout, () => {
debug(`closing session ${origin} after ${idleSessionTimeout} ms of inactivity`);
Expand Down

0 comments on commit 6010506

Please sign in to comment.