Skip to content

Commit

Permalink
fix: don't mutate PostgrestClient.headers
Browse files Browse the repository at this point in the history
  • Loading branch information
stupidawesome committed Oct 7, 2020
1 parent 0655762 commit 3100a04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class PostgrestQueryBuilder<T> extends PostgrestBuilder<T> {
) {
super({} as PostgrestBuilder<T>)
this.url = new URL(url)
this.headers = headers
this.headers = { ...headers }
this.schema = schema
}

Expand Down

0 comments on commit 3100a04

Please sign in to comment.