mirror of https://github.com/mastodon/mastodon
Under certain conditions, files fetched from remotes trigger an error when being uploaded using OpenStack Swift. This is because in some cases, the remote server will not return a content-length, so our ResponseWithLimitAdapter will hold a `nil` value for `#size`, which will lead to an invalid value for the Content-Length header of the Swift API call. This commit fixes that by taking the size from the actually-downloaded file size rather than the upstream-provided Content-Length header value. |
3 years ago | |
---|---|---|
.. | ||
attachment_extensions.rb | 4 years ago | |
blurhash_transcoder.rb | 5 years ago | |
color_extractor.rb | 4 years ago | |
gif_transcoder.rb | 4 years ago | |
image_extractor.rb | 4 years ago | |
lazy_thumbnail.rb | 5 years ago | |
response_with_limit_adapter.rb | 3 years ago | |
storage_extensions.rb | 4 years ago | |
transcoder.rb | 4 years ago | |
type_corrector.rb | 5 years ago | |
url_generator_extensions.rb | 4 years ago |