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: Record bodies in the RequestIterator even if the body is empty. #287

Merged
merged 3 commits into from Oct 19, 2020
Merged

fix: Record bodies in the RequestIterator even if the body is empty. #287

merged 3 commits into from Oct 19, 2020

Conversation

ShogunPanda
Copy link
Contributor

We have noticed in our API use of autocannon that onResponse callback are not invoked if the server sends no body.
This PR fixes the issue.

Copy link
Owner

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

There seem to be a failing test on Node v12 on Windows :/. I'm not really sure how would you like to address that.

test/run.test.js Outdated Show resolved Hide resolved
@ShogunPanda
Copy link
Contributor Author

ShogunPanda commented Oct 19, 2020

It seems like the build is timing out. I've updated the tap's timeout to see if it fixes it.

Edit: Apparently it worked :)

Copy link
Owner

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@mcollina mcollina merged commit 91a3a7e into mcollina:master Oct 19, 2020
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.

None yet

2 participants