Skip to content

Commit e218e2a

Browse files
committed
fix: acceptable_content? type mismatch
`request.content_mime_type` (returns `Mime::Type` object) while `request.media_type` (returns plain string).
1 parent 18efedc commit e218e2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/controllers/active_storage_db/files_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def update
2828
private
2929

3030
def acceptable_content?(token)
31-
token[:content_type] == request.content_mime_type &&
31+
token[:content_type] == request.media_type &&
3232
token[:content_length] == request.content_length
3333
end
3434

0 commit comments

Comments
 (0)