Skip to content

Commit 9b3635b

Browse files
committed
fix: return headers default value
1 parent be6962a commit 9b3635b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ export class FunctionsClient {
99
constructor(
1010
url: string,
1111
{
12-
headers,
12+
headers = {},
1313
customFetch,
1414
}: {
1515
headers?: Record<string, string>
1616
customFetch?: Fetch
1717
} = {}
1818
) {
1919
this.url = url
20-
this.headers = headers ?? {}
20+
this.headers = headers
2121
this.fetch = resolveFetch(customFetch)
2222
}
2323

0 commit comments

Comments
 (0)