Skip to content
Snippets Groups Projects
Verified Commit bbf4b093 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

settings.production: Allow extra azure configuration with a twist

Use None instead of empty string to try to prevent content-encoding to be set when
writing.

Refs. swh/infra/sysadm-environment#5129
parent 99bfc3ca
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment