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(tasks): add content length check to decode force run request #16458

Merged
merged 1 commit into from
Jan 9, 2020

Conversation

AlirieGray
Copy link
Contributor

@AlirieGray AlirieGray commented Jan 8, 2020

This PR fixes a bug where manually running a task failed with an "EOF" error. The solution was to check for the length of the request body, and only decode the body if it is not empty. We also check that the response body is not too long, since there is only one expected property in the body at most.

@AlirieGray AlirieGray requested a review from a team January 8, 2020 22:23
@ghost ghost requested review from gavincabbage and removed request for a team January 8, 2020 22:53
@AlirieGray AlirieGray merged commit 4ad9e6b into master Jan 9, 2020
@AlirieGray AlirieGray deleted the task/run-api-bug branch January 9, 2020 02:55
@AlirieGray AlirieGray removed the request for review from gavincabbage January 9, 2020 03:09
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