Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ctx.bytes rather than getting the InputStream directly #73

Closed

Conversation

rmn36
Copy link

@rmn36 rmn36 commented Aug 17, 2022

Use ctx.bytes rather than getting the InputStream directly so that the contents of the InputStream are cached in the Request object. Right now if a Decorator tries to access the request body via the InputStream the InputStream will then be empty for the postJson decorator. Therefore, postJson should use the bytes field of Request so if an upstream Decorator also accesses the bytes field the value will be cached.

…e contents of the InputStream are cached in the Request object
@rmn36
Copy link
Author

rmn36 commented Apr 19, 2023

@lihaoyi can you please review this? It's been open for awhile and is a very small change.

@lihaoyi
Copy link
Member

lihaoyi commented May 18, 2024

Superseded by #123

@lihaoyi lihaoyi closed this May 18, 2024
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.

3 participants