mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #480] Content-Length is searched for in case sensitive manner #269
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#269
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jdanders on GitHub (Oct 5, 2016).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/480
RFC 7230 states: "Each header field consists of a case-insensitive field name followed by a colon (":")"
If the HTTP header coming back from the S3 server has 'content-length:' in it instead of 'Content-Length:' then s3fs fails to find the size and reports the file has 0 length.
I believe the problem code is src/s3fs_util.cpp line 721, where a case-sensitive find is performed.
@ggtakec commented on GitHub (Oct 23, 2016):
@jdanders Thanks for your help.
I fixed this issue by #488(#489), please try to check latest codes.
Regards,