Skip to content

MODHAADM-143: Set Content-type to text, not json, for 204 No Content - #136

Merged
nielserik merged 1 commit into
indexdata:masterfrom
julianladisch:MODHAADM-143
Nov 18, 2025
Merged

MODHAADM-143: Set Content-type to text, not json, for 204 No Content#136
nielserik merged 1 commit into
indexdata:masterfrom
julianladisch:MODHAADM-143

Conversation

@julianladisch

@julianladisch julianladisch commented Nov 17, 2025

Copy link
Copy Markdown
Contributor

https://folio-org.atlassian.net/browse/MODHAADM-143

An empty JSON document is invalid.

An empty body with Content-type: application/json causes a json parse failure in Stripes.
Use Content-type: text/plain instead.

This PR handles all 204 responses found by this GitHub search: https://github.com/search?q=repo%3Aindexdata%2Fmod-harvester-admin+%28204+OR+no_content+OR+nocontent%29&type=code

https://folio-org.atlassian.net/browse/MODHAADM-143

An empty JSON document is invalid.

An empty body with `Content-type: application/json` causes a json parse failure in Stripes.
Use `Content-type: text/plain` instead.

@nielserik nielserik left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you.

@nielserik
nielserik merged commit a91fec5 into indexdata:master Nov 18, 2025
1 check failed
@julianladisch
julianladisch deleted the MODHAADM-143 branch December 19, 2025 15:53
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.

2 participants