Skip to content

Conversation

@kauffinger
Copy link
Contributor

Description

HttpTransport now sends requests with the 'Accept: application/json' header to ensure proper content negotiation. Added a unit test to verify the header is included in outgoing requests.

I have some server implementations breaking when I don't send that header.

Breaking Changes

Possibly users who use implementations that explicitly don't accept the header. Would be weird tho.

We could make this configurable, but shouldn't be I think?

HttpTransport now sends requests with the 'Accept: application/json' header to ensure proper content negotiation. Added a unit test to verify the header is included in outgoing requests.
@kauffinger kauffinger mentioned this pull request Jul 17, 2025
@sixlive sixlive merged commit 07ff336 into prism-php:main Jul 17, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants