Override Azure `.url` method to accept `http_method` and ignore it
@@ -21,6 +21,17 @@ class AzureBuildMediaStorage(BuildMediaStorageMixin, OverrideHostnameMixin, Azur
override_hostname = getattr(settings, 'AZURE_MEDIA_STORAGE_HOSTNAME', None)
+ def url(self, name, expire=None, http_method=None):
+ """
+ Override to accept ``http_method`` and ignore it.
+
+ This method helps us to bring compatibility between Azure Blob Storage
+ (which does not use the HTTP method) and Amazon S3 (who requires HTTP
+ method to build the signed URL).
+ """
+ return super().url(name, expire)
+
+
class AzureBuildStorage(AzureStorage):
"""An Azure Storage backend for build cold storage."""
