getting single object without Accept: application/vnd.pgrst.object ? #2338
-
Is there another way to force PostgREST to answer with a single object instead of an array besides setting the "Accept: application/vnd.pgrst.object" header? I'm trying to serve GeoJSON to a Mapbox-GL-JS app and Mapbox overwrites custom Accept: headers with application/json. And an array is not a properly formated GeoJSON response. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hm, yeah that looks like trouble. Do you know if it's possible to configure Mapbox to specify an |
Beta Was this translation helpful? Give feedback.
Hm, yeah that looks like trouble. Do you know if it's possible to configure Mapbox to specify an
Accept: application/geo+json
header instead? Then we could solve this with #1564.