We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b4eef1 commit 05baa1bCopy full SHA for 05baa1b
activestorage/active.py
@@ -27,6 +27,11 @@ def return_storage_type(uri):
27
resp = requests.head(uri)
28
except requests.exceptions.MissingSchema: # eg local file
29
return
30
+ except requests.exceptions.InvalidSchema: # eg Minio file s3://pyactivestorage/common_cl_a.nc
31
+ if not uri.startswith("s3:"):
32
+ return
33
+ else:
34
+ return "s3"
35
response = resp.headers
36
37
# https files on NGINX don't have "gateway-protocol" key
0 commit comments