Skip to content

Commit

Permalink
chore: fix issue Content-Length header for copy blob operation
Browse files Browse the repository at this point in the history
  • Loading branch information
ericenns committed Jan 23, 2025
1 parent 1b4c6b1 commit 74cc42e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/azure_blob/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ def copy_blob(key, source_key, options = {})
uri = generate_uri("#{container}/#{key}")

headers = {
"Content-Length": "0",
"Content-Length": 0,
"x-ms-copy-source": generate_uri("#{container}/#{source_key}").to_s,
"x-ms-blob-type": "BlockBlob",
}

Http.new(uri, headers, signer:, **options.slice(:metadata, :tags)).put
end
tend

# Delete a blob
#
Expand Down

0 comments on commit 74cc42e

Please sign in to comment.