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: don't respond when headers already sent #2278

Merged
merged 1 commit into from
Nov 17, 2023
Merged

fix: don't respond when headers already sent #2278

merged 1 commit into from
Nov 17, 2023

Conversation

tripodsan
Copy link
Contributor

fixes #2276

Copy link

This PR will trigger a patch release when merged.

Comment on lines +86 to +88
if (res.headersSent) {
return;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is the actual fix: if serving a local file failed due to a communication error, the response was already initiated but it tried later to serve the proxied resource as well.

Copy link

codecov bot commented Nov 17, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (1a8d2ac) 93.43% compared to head (2df03e0) 93.49%.
Report is 1 commits behind head on main.

Files Patch % Lines
src/server/HelixServer.js 82.35% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2278      +/-   ##
==========================================
+ Coverage   93.43%   93.49%   +0.05%     
==========================================
  Files          26       26              
  Lines        3594     3611      +17     
  Branches        1        1              
==========================================
+ Hits         3358     3376      +18     
+ Misses        236      235       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tripodsan tripodsan merged commit 6be2f00 into main Nov 17, 2023
8 checks passed
@tripodsan tripodsan deleted the fix-aborted branch November 17, 2023 20:53
tripodsan pushed a commit that referenced this pull request Nov 17, 2023
## [16.0.8](v16.0.7...v16.0.8) (2023-11-17)

### Bug Fixes

* don't respond when headers already sent ([#2278](#2278)) ([6be2f00](6be2f00)), closes [#2276](#2276)
@tripodsan
Copy link
Contributor Author

🎉 This PR is included in version 16.0.8 🎉

The release is available on:

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.

Simulator fails to serve pages with webm videos
2 participants