Skip to content

Commit 74cc42e

Browse files
committed
chore: fix issue Content-Length header for copy blob operation
1 parent 1b4c6b1 commit 74cc42e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/azure_blob/client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ def copy_blob(key, source_key, options = {})
8787
uri = generate_uri("#{container}/#{key}")
8888

8989
headers = {
90-
"Content-Length": "0",
90+
"Content-Length": 0,
9191
"x-ms-copy-source": generate_uri("#{container}/#{source_key}").to_s,
9292
"x-ms-blob-type": "BlockBlob",
9393
}
9494

9595
Http.new(uri, headers, signer:, **options.slice(:metadata, :tags)).put
96-
end
96+
tend
9797

9898
# Delete a blob
9999
#

0 commit comments

Comments
 (0)