diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2020-06-30 23:58:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-30 23:58:02 +0200 |
commit | 7aaf2b44ec698fd4f20b927fcac7edc0394a2647 (patch) | |
tree | 036b96777e1f525b2b76aab36204dee30cfa3345 /app/lib/response_with_limit.rb | |
parent | 65506bac3f3fe233b5b7b3241020bd74eb5c9259 (diff) |
Fix remote files not using Content-Type header, streaming (#14184)
Diffstat (limited to 'app/lib/response_with_limit.rb')
-rw-r--r-- | app/lib/response_with_limit.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/lib/response_with_limit.rb b/app/lib/response_with_limit.rb new file mode 100644 index 000000000..2cc17bc5f --- /dev/null +++ b/app/lib/response_with_limit.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +class ResponseWithLimit + def initialize(response, limit) + @response = response + @limit = limit + end + + attr_reader :response, :limit +end |