1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00
mastodon/lib/paperclip
Claire 48f8658d34
Fix upload of remote media with OpenStack Swift sometimes failing ()
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.
2021-11-16 21:36:28 +01:00
..
attachment_extensions.rb Switch from unmaintained paperclip to kt-paperclip () 2021-09-29 23:52:36 +02:00
blurhash_transcoder.rb
color_extractor.rb Fixed code quality issues () 2021-01-31 21:26:09 +01:00
gif_transcoder.rb Fix animated GIF generates animated thumbnail () 2021-05-11 19:15:11 +02:00
image_extractor.rb Fix media processing getting stuck on too much stdin/stderr () 2021-05-05 19:44:01 +02:00
lazy_thumbnail.rb
response_with_limit_adapter.rb Fix upload of remote media with OpenStack Swift sometimes failing () 2021-11-16 21:36:28 +01:00
storage_extensions.rb Add S3_FORCE_SINGLE_REQUEST env var to work around S3 compatibility issues () 2021-10-18 18:29:04 +02:00
transcoder.rb Fix unsupported video error message handling () 2021-08-08 15:28:57 +02:00
type_corrector.rb
url_generator_extensions.rb Switch from unmaintained paperclip to kt-paperclip () 2021-09-29 23:52:36 +02:00