Skip to content

Commit c839fdb

Browse files
authored
Merge pull request rails#43244 from jcoyne/patch-1
Add explicit rendering to DiskController#update
2 parents f2209e9 + 3178036 commit c839fdb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

activestorage/app/controllers/active_storage/disk_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def update
2323
if token = decode_verified_token
2424
if acceptable_content?(token)
2525
named_disk_service(token[:service_name]).upload token[:key], request.body, checksum: token[:checksum]
26+
head :no_content
2627
else
2728
head :unprocessable_entity
2829
end

0 commit comments

Comments
 (0)