We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee288fd commit 1b7f175Copy full SHA for 1b7f175
packages/core/src/client.ts
@@ -78,7 +78,7 @@ export class MinimalClient {
78
fetchOpts = {},
79
headers = {},
80
}: VOTOpts = {}) {
81
- const schema = this.hostSchemaRe.exec(host)?.[1] as URLSchema | undefined;
+ const schema = this.hostSchemaRe.exec(host)?.[1] as URLSchema | null;
82
this.host = schema ? host.replace(`${schema}://`, "") : host;
83
this.schema = schema ?? "https";
84
this.fetch = fetchFn;
0 commit comments