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: fix http timings total and download fields #162

Merged
merged 2 commits into from
Jul 14, 2023

Conversation

alexey-yarmosh
Copy link
Member

@MartinKolarik MartinKolarik merged commit e050ce5 into master Jul 14, 2023
6 checks passed
@MartinKolarik MartinKolarik deleted the http-timings-fix branch July 14, 2023 17:49
@@ -324,7 +324,10 @@ export class HttpCommand implements CommandInterface<HttpOptions> {
}

private parseStreamTimings (stream: Request) {
const timings = { ...{ end: Date.now(), phases: {} }, ...stream.timings };
const timings = { ...stream.timings };
timings.end = timings.end ?? Date.now();
Copy link
Member

Choose a reason for hiding this comment

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

@alexey-yarmosh do we know the underlying reason why the end might be undefined while some other fields are still present?

Copy link
Member Author

Choose a reason for hiding this comment

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

I’ve opened an issue, so if there is any update we will know
sindresorhus/got#2282

@github-actions
Copy link

🎉 This PR is included in version 0.25.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HTTP timings broken
2 participants