Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Commit 3100a04

Browse files
fix: don't mutate PostgrestClient.headers
1 parent 0655762 commit 3100a04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class PostgrestQueryBuilder<T> extends PostgrestBuilder<T> {
9191
) {
9292
super({} as PostgrestBuilder<T>)
9393
this.url = new URL(url)
94-
this.headers = headers
94+
this.headers = { ...headers }
9595
this.schema = schema
9696
}
9797

0 commit comments

Comments
 (0)