Skip to content

Content-Range for INSERTs and UPDATEs #3403

Answered by sted
sted asked this question in Q&A
Discussion options

You must be logged in to vote

To add context, I verified this behaviour on version 12.0.2, without using the Range header in the requests, which is now ignored for POST and PATCH methods.

I would add an issue about this, but I think this will be resolved when the Shortcomings in HTTP compliance #1089 are corrected:

PostgREST uses the Range and Content-Range headers defined in RFC 7233, but it doesn’t implement RFC 7233 properly. Firstly, PostgREST sends Content-Range on all kinds of responses, including 200 (OK) to GET, 201 (Created) to POST, and 204 (No Content) to DELETE. But in RFC 7233 Content-Range is only a feature of special partial responses, which are indicated by status code 206 (Partial Content), which in …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant