We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
explain()
1 parent 3816371 commit 5e7dbdcCopy full SHA for 5e7dbdc
src/PostgrestTransformBuilder.ts
@@ -267,7 +267,7 @@ export default class PostgrestTransformBuilder<
267
.filter(Boolean)
268
.join('|')
269
// An Accept header can carry multiple media types but postgrest-js always sends one
270
- const forMediatype = this.headers['Accept']
+ const forMediatype = this.headers['Accept'] ?? 'application/json'
271
this.headers[
272
'Accept'
273
] = `application/vnd.pgrst.plan+${format}; for="${forMediatype}"; options=${options};`
0 commit comments