Skip to content

[BUGFIX] Try getParsedBody() before decoding request body stream#57

Merged
Kanti merged 1 commit intoFriendsOfTYPO3:mainfrom
andersundsehr:bugfix/use-getParsedBody-instead-of-decoding-consumed-psr7-body-stream
Apr 15, 2026
Merged

[BUGFIX] Try getParsedBody() before decoding request body stream#57
Kanti merged 1 commit intoFriendsOfTYPO3:mainfrom
andersundsehr:bugfix/use-getParsedBody-instead-of-decoding-consumed-psr7-body-stream

Conversation

@Kanti
Copy link
Copy Markdown
Contributor

@Kanti Kanti commented Apr 15, 2026

PSR-7 streams are one-time readable; getParsedBody() avoids empty reads.

This is only relevant if you use a middleware like: https://github.com/middlewares/payload/blob/a6f8109397368c0fb79af044a6bd5c6d90166b72/src/JsonPayload.php

thanks to @twojtylak

PSR-7 streams are one-time readable; getParsedBody() avoids empty reads.

This is only relevant if you use a middleware like:
https://github.com/middlewares/payload/blob/a6f8109397368c0fb79af044a6bd5c6d90166b72/src/JsonPayload.php
@Kanti Kanti merged commit 4cbf498 into FriendsOfTYPO3:main Apr 15, 2026
10 checks passed
@Kanti Kanti deleted the bugfix/use-getParsedBody-instead-of-decoding-consumed-psr7-body-stream branch April 15, 2026 10:18
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