diff --git a/src/PostgREST/ApiRequest.hs b/src/PostgREST/ApiRequest.hs index 9cf82097e..5002454fe 100644 --- a/src/PostgREST/ApiRequest.hs +++ b/src/PostgREST/ApiRequest.hs @@ -124,8 +124,8 @@ userApiRequest schema req reqBody = Nothing -> PayloadParseError "All lines must have same number of fields" Just json -> PayloadJSON json) (CSV.decodeByName reqBody) - Right OpenAPI -> - PayloadParseError "Content-type not acceptable: application/openapi+json; charset=utf-8" + Right oa@OpenAPI -> + PayloadParseError $ "Content-type not acceptable: " <> cs (show oa) -- This is a Left value because form-urlencoded is not a content -- type which we ever use for responses, only something we handle -- just this once for requests