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: ContentLength incorrectly set for empty files #1785

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

alan-agius4
Copy link
Contributor

A regression was introduced in the latest version wherein files with zero bytes would have their ContentLength erroneously set to 1. This resulted in requests failing with an ERR_CONTENT_LENGTH_MISMATCH.

A regression was introduced in the latest version wherein files with zero bytes would have their `ContentLength` erroneously set to `1`. This resulted in requests failing with an `ERR_CONTENT_LENGTH_MISMATCH`.
Copy link

codecov bot commented Mar 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.20%. Comparing base (d45f033) to head (4538591).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1785   +/-   ##
=======================================
  Coverage   97.20%   97.20%           
=======================================
  Files          10       10           
  Lines         465      465           
  Branches      136      137    +1     
=======================================
  Hits          452      452           
  Misses         12       12           
  Partials        1        1           

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

@alexander-akait alexander-akait merged commit 0f3e25e into webpack:master Mar 21, 2024
14 checks passed
@alexander-akait
Copy link
Member

Thank you

@alan-agius4 alan-agius4 deleted the file-empty branch March 21, 2024 11:08
@alan-agius4
Copy link
Contributor Author

@alexander-akait, when should we expect this to be released?

@alexander-akait
Copy link
Member

@alan-agius4 ~1 hour, want to finish fix with some types

@alan-agius4
Copy link
Contributor Author

@alexander-akait, cool thanks

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