Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def start_copy_blob_from_url_and_abort_copy(self):
try:
# [START copy_blob_from_url]
# Get the blob client with the source blob
source_blob = "http://www.gutenberg.org/files/59466/59466-0.txt"
source_blob = "https://www.gutenberg.org/files/59466/59466-0.txt"
copied_blob = blob_service_client.get_blob_client("copyblobcontainer", '59466-0.txt')

# start copy and check copy status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ async def copy_blob_from_url_and_abort_copy_async(self):
try:
# [START copy_blob_from_url]
# Get the blob client with the source blob
source_blob = "http://www.gutenberg.org/files/59466/59466-0.txt"
source_blob = "https://www.gutenberg.org/files/59466/59466-0.txt"
copied_blob = blob_service_client.get_blob_client("copyblobcontainerasync", '59466-0.txt')

# start copy and check copy status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def main():

status = None
blob_service_client = BlobServiceClient.from_connection_string(CONNECTION_STRING)
source_blob = "http://www.gutenberg.org/files/59466/59466-0.txt"
source_blob = "https://www.gutenberg.org/files/59466/59466-0.txt"
copied_blob = blob_service_client.get_blob_client("mycontainer", '59466-0.txt')
# Copy started
copied_blob.start_copy_from_url(source_blob)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async def main():
status = None
blob_service_client = BlobServiceClient.from_connection_string(CONNECTION_STRING)
async with blob_service_client:
source_blob = "http://www.gutenberg.org/files/59466/59466-0.txt"
source_blob = "https://www.gutenberg.org/files/59466/59466-0.txt"
copied_blob = blob_service_client.get_blob_client("mycontainer", '59466-0.txt')
# Copy started"
await copied_blob.start_copy_from_url(source_blob)
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/azure-storage-blob/tests/test_common_blob.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def test_create_blob_with_requests(self, resource_group, location, storage_accou
self._setup(storage_account, storage_account_key)

# Act
uri = "http://www.gutenberg.org/files/59466/59466-0.txt"
uri = "https://www.gutenberg.org/files/59466/59466-0.txt"
data = requests.get(uri, stream=True)
blob = self.bsc.get_blob_client(self.container_name, "gutenberg")
resp = blob.upload_blob(data=data.raw)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def gen():
async def test_create_blob_with_requests_async(self, resource_group, location, storage_account, storage_account_key):
await self._setup(storage_account, storage_account_key)
# Act
uri = "http://www.gutenberg.org/files/59466/59466-0.txt"
uri = "https://www.gutenberg.org/files/59466/59466-0.txt"
data = requests.get(uri, stream=True)
blob = self.bsc.get_blob_client(self.container_name, "gutenberg")
resp = await blob.upload_blob(data=data.raw, overwrite=True)
Expand All @@ -424,7 +424,7 @@ async def test_create_blob_with_aiohttp_async(self, resource_group, location, st
await self._setup(storage_account, storage_account_key)
blob = self.bsc.get_blob_client(self.container_name, "gutenberg_async")
# Act
uri = "http://www.gutenberg.org/files/59466/59466-0.txt"
uri = "https://www.gutenberg.org/files/59466/59466-0.txt"
async with aiohttp.ClientSession() as session:
async with session.get(uri) as data:
async for text, _ in data.content.iter_chunks():
Expand Down