Skip to content

Commit

Permalink
fix: http2 option
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirvolek committed Nov 21, 2021
1 parent 14b1401 commit ca9142f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/index.ts
Expand Up @@ -39,7 +39,7 @@ export const validateOptions = (options?: Options): ValidatedOptions => {
projectId: options.projectId,
isTestnet: options.isTestnet,
version: options.version || DEFAULT_API_VERSION,
http2: options.http2 || true,
http2: options.http2 ?? true,
// see: https://github.com/sindresorhus/got/blob/main/documentation/7-retry.md#retry
retrySettings: options.retrySettings,
requestTimeout: options.requestTimeout ?? 20000, // 20 seconds
Expand Down

0 comments on commit ca9142f

Please sign in to comment.