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

Commit 7446cc1

Browse files
fix: add missing arg
1 parent f814d36 commit 7446cc1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

postgrest/base_request_builder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,8 +556,9 @@ def explain(
556556
if key not in ["self", "format"] and value
557557
]
558558
options_str = "|".join(options)
559+
media_type = self.headers['Accept'] if 'Accept' in self.headers else 'application/json'
559560
self.headers["Accept"] = (
560-
f"application/vnd.pgrst.plan+{format}; options={options_str}"
561+
f"application/vnd.pgrst.plan+{format}; for={media_type}; options={options_str}"
561562
)
562563
return self
563564

0 commit comments

Comments
 (0)