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

Propagate content length from filesystem through geny.Writable and os.Source #320

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Oct 8, 2024

This means downstream libraries like Requests-Scala or Cask can properly set the content length when handling os.read.streams and similar values in their HTTP requests or responses

Noticed the lack of this when uploading to github failed in com-lihaoyi/mill#3686 due to the lack of content length header in the upload

Covered by unit tests

@lihaoyi lihaoyi merged commit 9b08cb0 into main Oct 8, 2024
8 checks passed
@lihaoyi lihaoyi deleted the source-content-length branch October 8, 2024 07:43
lihaoyi added a commit to com-lihaoyi/mill that referenced this pull request Oct 8, 2024
Pulls in com-lihaoyi/os-lib#320 which should let
us remove the workaround in
561a007
@lefou lefou added this to the 0.11.1 milestone Oct 21, 2024
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