diff --git a/PKG-INFO b/PKG-INFO index 2282411c55d84afaa0ac425840165bc81dae41b9..64ed44f8f32dc0cb9953114500fccbd427a067c6 100644 --- a/PKG-INFO +++ b/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: swh.deposit -Version: 1.4.2 +Version: 1.4.3 Summary: Software Heritage Deposit Server Home-page: https://forge.softwareheritage.org/source/swh-deposit/ Author: Software Heritage developers diff --git a/swh.deposit.egg-info/PKG-INFO b/swh.deposit.egg-info/PKG-INFO index 2282411c55d84afaa0ac425840165bc81dae41b9..64ed44f8f32dc0cb9953114500fccbd427a067c6 100644 --- a/swh.deposit.egg-info/PKG-INFO +++ b/swh.deposit.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: swh.deposit -Version: 1.4.2 +Version: 1.4.3 Summary: Software Heritage Deposit Server Home-page: https://forge.softwareheritage.org/source/swh-deposit/ Author: Software Heritage developers diff --git a/swh/deposit/settings/production.py b/swh/deposit/settings/production.py index 61b5ee6065b9f082f95076b136cb1f35a54c1387..33e1d0639ac6a4289e2ad0a3f469bb2550403cfd 100644 --- a/swh/deposit/settings/production.py +++ b/swh/deposit/settings/production.py @@ -134,7 +134,10 @@ if cfg_azure: object_parameters = {} for optional_config_key in ["content_type", "content_disposition"]: if optional_config_key in cfg_azure: - object_parameters[optional_config_key] = cfg_azure[optional_config_key] + value = cfg_azure[optional_config_key] + # Explicit "" as None instead of empty string which is not interpreted + # correctly + object_parameters[optional_config_key] = None if not value else value options.update(dict(object_parameters=object_parameters))