Skip to content

Commit ff6484b

Browse files
committed
Fix AzureStorageService#headers_for_direct_upload default for rails#43294
1 parent 5cb2d3d commit ff6484b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activestorage/lib/active_storage/service/azure_storage_service.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def url_for_direct_upload(key, expires_in:, content_type:, content_length:, chec
101101
end
102102
end
103103

104-
def headers_for_direct_upload(key, content_type:, checksum:, filename: nil, disposition: nil, custom_metadata:, **)
104+
def headers_for_direct_upload(key, content_type:, checksum:, filename: nil, disposition: nil, custom_metadata: {}, **)
105105
content_disposition = content_disposition_with(type: disposition, filename: filename) if filename
106106

107107
{ "Content-Type" => content_type, "Content-MD5" => checksum, "x-ms-blob-content-disposition" => content_disposition, "x-ms-blob-type" => "BlockBlob", **custom_metadata_headers(custom_metadata) }

0 commit comments

Comments
 (0)