зеркало из https://github.com/github/aws-s3.git
Uses stat rather than lstat to in the event that the uploaded file has been unlinked
This commit is contained in:
Родитель
0bc5391734
Коммит
79f358f771
|
@ -38,7 +38,7 @@ module AWS
|
|||
else
|
||||
request.body = body
|
||||
end
|
||||
request.content_length = body.respond_to?(:lstat) ? body.lstat.size : body.size
|
||||
request.content_length = body.respond_to?(:lstat) ? body.stat.size : body.size
|
||||
else
|
||||
request.content_length = 0
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче