mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-10 23:00:57 +00:00
Fixed searching Content-Length without case sensitive - #480
This commit is contained in:
parent
1a9cf6f66d
commit
a7a64d954a
@ -75,6 +75,11 @@ inline headers_t::const_iterator find_content_type(headers_t& meta)
|
||||
return find_strcase_header(meta, "Content-Type");
|
||||
}
|
||||
|
||||
inline headers_t::const_iterator find_content_length(headers_t& meta)
|
||||
{
|
||||
return find_strcase_header(meta, "Content-Length");
|
||||
}
|
||||
|
||||
inline headers_t::const_iterator find_last_modified(headers_t& meta)
|
||||
{
|
||||
return find_strcase_header(meta, "Last-Modified");
|
||||
@ -723,7 +728,7 @@ off_t get_size(const char *s)
|
||||
|
||||
off_t get_size(headers_t& meta)
|
||||
{
|
||||
headers_t::const_iterator iter = find_content_type(meta);
|
||||
headers_t::const_iterator iter = find_content_length(meta);
|
||||
if(meta.end() == iter){
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user