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 trigger response handling for streamed 0 length response body #345

Merged
merged 1 commit into from
May 5, 2023

Conversation

paulo
Copy link
Contributor

@paulo paulo commented May 5, 2023

For https://github.com/netlify/pillar-support/issues/395

- Summary

When the response is streamed (Content-Length == -1) but the body doesn't have any content, we fail hard when decoding the payload. This fixes that.

- Test plan

  • Added a test

- Description for the changelog

Fix reading webhook response when content length is unknown and body is empty

@paulo paulo added the type: bug code to address defects in shipped code label May 5, 2023
@paulo paulo requested review from mraerino and cbosss May 5, 2023 16:53
@paulo paulo self-assigned this May 5, 2023
@paulo paulo marked this pull request as ready for review May 5, 2023 16:53
@paulo paulo force-pushed the pa/fix-zero-length-streamed-body branch from 53a1d50 to ae71840 Compare May 5, 2023 16:56
@paulo paulo merged commit 3fabd3f into master May 5, 2023
@paulo paulo deleted the pa/fix-zero-length-streamed-body branch May 5, 2023 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants