-
Environment
Description of issueSome research indicated (to me) that this was addressed in 4b46c4e#diff-b032808b94623f64b08323b5ff13143d5ce0623cd14d49b4060ad1e417a19a6c Prefer: return=headers-only HEADER does not return location information I am using the tutorial with the todos table to reproduce this (Steps to reproduce: Include a minimal SQL definition plus how you make the request to PostgREST and the response body) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
What is the exact request you're doing and the response you're getting? If you're seeing an error like |
Beta Was this translation helpful? Give feedback.
-
Purely by the tutorial, using secret 01234567012345670123456701234567, running in an emacs shell so using json_pp to print brucer42@brucer42s-MBP postgrest % curl http://localhost:3000/todos -X POST
% Total % Received % Xferd Average Speed Time Time Time Current
% Total % Received % Xferd Average Speed Time Time Time Current |
Beta Was this translation helpful? Give feedback.
Purely by the tutorial, using secret 01234567012345670123456701234567, running in an emacs shell so using json_pp to print
brucer42@brucer42s-MBP postgrest % curl http://localhost:3000/todos -X POST
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoidG9kb191c2VyIn0.qrlieu5zvSLJcyDFJ_ZoWTbLkDZbVm1LAsdtPKM7J1Y"
-H "Prefer: return=headers-only"
-H "Content-Type: application/json"
-d '{"task": "learn how to auth"}' | json_pp
curl http://localhost:3000/todos -X POST \