Skip to content

Conversation

@laurenceisla
Copy link
Member

@laurenceisla laurenceisla commented Dec 5, 2025

Closes #4455

{ matchStatus = 416
, matchHeaders = ["Content-Range" <:> "*/0"]
, matchHeaders = [ "Content-Range" <:> "*/0"
, "Content-Length" <:> "144"]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test only responds with the Content-Length when it's added to matchHeaders... this is unexpected for a test since it shouldn't modify how our application works. Unless there's a way to make this same request and avoid getting the "Content-Length" or ignore it?

…unds

- Happens when offset > the number of rows and when "Prefer: count=exact" header is sent
- Regression introduced in commit 57ef998
For when a preference other than return=representation is requested.
@laurenceisla laurenceisla force-pushed the fix/truncated-limits-error branch from a99a073 to ac6451f Compare December 5, 2025 21:41
@laurenceisla laurenceisla marked this pull request as ready for review December 5, 2025 21:54
Copy link
Member

@steve-chavez steve-chavez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Nice catch 👍

@laurenceisla laurenceisla merged commit ab9b00c into PostgREST:main Dec 10, 2025
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Malformed response to request with offset larger than resultset in combination with Prefer:count=exact

3 participants