-
-
Notifications
You must be signed in to change notification settings - Fork 956
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
content-length: 0
on linux file with size 0
on stat
#1486
Comments
It's working properly on 9.6.0 but it's failing on 10.0.0 |
Works on |
I think the fix is quite simple: if it's a stream go with chunked, no content-length even if we know it. |
Ok, it's not that easy because the upload progress feature is gonna break, but at least we can go with:
|
That's not the right solution. The alpha version has the same |
I'm sorry but currently I've no time to investigate this, but I can say this: if |
No problem, I'll look into this ASAP. |
Describe the bug
In linux where "everything is a file" some files have no size when calling stat (eg.
/proc/cpuinfo
).In this case Got set
content-length
to0
, when it should use achunked
transfer encoding.Actual behavior
Got set
content-length
to0
.Expected behavior
Got uses a
chunked
transfer encoding.Code to reproduce
Checklist
The text was updated successfully, but these errors were encountered: