2
0

Add OpenSSL::SSL::SSLError to http connection errors wrapper (#32307)

This commit is contained in:
Matt Jankowski
2024-10-08 10:59:51 -04:00
committed by GitHub
parent e8ec6667bd
commit 258dce1256
19 changed files with 22 additions and 21 deletions

View File

@@ -13,7 +13,7 @@ class MediaProxyController < ApplicationController
rescue_from ActiveRecord::RecordInvalid, with: :not_found
rescue_from Mastodon::UnexpectedResponseError, with: :not_found
rescue_from Mastodon::NotPermittedError, with: :not_found
rescue_from(*Mastodon::HTTP_CONNECTION_ERRORS, OpenSSL::SSL::SSLError, with: :internal_server_error)
rescue_from(*Mastodon::HTTP_CONNECTION_ERRORS, with: :internal_server_error)
def show
with_redis_lock("media_download:#{params[:id]}") do