mastodon/lib
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
..
action_dispatch replace all instances of "ends_with?" with "end_with?" () 2021-02-19 09:56:14 +01:00
active_record Remove dependency on pluck_each gem () 2021-04-12 03:35:58 +02:00
assets Add emoji autosuggest () 2017-09-23 14:47:32 +02:00
chewy/strategy Fix unnecessary queries when batch-removing statuses, 100x faster () 2020-12-22 17:13:55 +01:00
devise Fix authentication before 2FA challenge () 2019-09-24 04:35:36 +02:00
generators Add post-deployment migration system () 2018-08-13 13:40:01 +02:00
json_ld Fixed code quality issues () 2021-01-31 21:26:09 +01:00
mastodon Forward port version bumps to 3.4.2 and 3.4.3 () 2021-11-06 05:32:14 +01:00
paperclip Fix upload of remote media with OpenStack Swift sometimes failing () 2021-11-16 21:36:28 +01:00
rails Fix obsolete digitalocean.rake file breaking rake tasks () 2021-02-11 02:11:30 +01:00
redis Change Redis#exists calls to Redis#exists? to avoid deprecation warning () 2020-07-01 19:05:21 +02:00
sanitize_ext Prepare Mastodon for zeitwerk autoloader () 2021-03-19 02:42:43 +01:00
tasks Fix "bundle exec rails mastodon:setup" crashing in some circumstances () 2021-11-11 14:00:30 +01:00
templates Add post-deployment migration system () 2018-08-13 13:40:01 +02:00
terrapin Add Ruby 3.0 support () 2021-05-06 14:22:54 +02:00
webpacker Add subresource integrity for JS and CSS assets () 2020-11-06 11:56:31 +01:00
cli.rb Fix tootctl self-destruct not sending Delete activities for recently-suspended accounts () 2021-10-14 19:59:28 +02:00
enumerable.rb Optimize map { ... }.compact calls () 2021-01-10 00:32:01 +01:00
exceptions.rb Fix media redownload worker retrying on unexpected response codes () 2021-05-05 23:46:59 +02:00