We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d6b5d5 commit 9e1bbbeCopy full SHA for 9e1bbbe
lib/azure_blob/client.rb
@@ -86,9 +86,11 @@ def get_blob(key, options = {})
86
def copy_blob(key, source_key, options = {})
87
uri = generate_uri("#{container}/#{key}")
88
89
+ source_uri = signed_uri(source_key, permissions: "r", expiry: Time.at(Time.now.to_i + 300).utc.iso8601)
90
+
91
headers = {
92
"Content-Length": 0,
- "x-ms-copy-source": generate_uri("#{container}/#{source_key}").to_s,
93
+ "x-ms-copy-source": source_uri.to_s,
94
"x-ms-blob-type": "BlockBlob",
95
}
96
0 commit comments