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

fix: Prevents invalid stream for null payloads #4

Merged
merged 2 commits into from
Jan 15, 2024

Conversation

mikeymike
Copy link
Contributor

Resolves: #3

Any of our resource clients utilising a null payload may result in a "null" body on the request stream.

This solution prevents a stream being created on the request if no payload was intended.

Note this issue looks like it may only surface when specific HTTP Client/s are used, I've not pinpointed where this happens or which packages would be susceptible

@mikeymike mikeymike requested a review from a team January 15, 2024 10:47
vifer
vifer previously approved these changes Jan 15, 2024
Copy link

@Luehrsen Luehrsen left a comment

Choose a reason for hiding this comment

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

lgtm

@mikeymike mikeymike merged commit df2fc8b into main Jan 15, 2024
3 checks passed
@mikeymike mikeymike deleted the fix/get-error-with-null-body branch January 15, 2024 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error 500 When Listing Products (non-empty body in GET requests)
3 participants