diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 90a1e3a9..b1007698 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -59,9 +59,7 @@ http { add_header 'Access-Control-Allow-Headers' 'Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Mx-ReqToken,X-Requested-With'; # This hack to add header Content-Disposition will be deleted if envvar THUMBOR_ALLOW_CONTENT_DISPOSITION != true - if ($args ~* download){ - add_header 'Content-Disposition' 'attachment'; - } + if ($args ~* download){ add_header 'Content-Disposition' 'attachment'; } location ~* "^/(..)(..)(.+)?$" { root /data/result_storage/v2/$1/$2;