From fc8148aa709c7882678aa9b39046125f7a88dc42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartomeu=20Mir=C3=B3=20Mateu?= Date: Thu, 16 Mar 2017 17:16:09 +0100 Subject: [PATCH] Removed unnecessary UTF-8. Added fix in other case. --- nginx/nginx.conf | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 4e4bfd28..55a3cc5c 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -76,9 +76,9 @@ http { add_header 'Content-Disposition' 'attachment'; # THUMBOR_ALLOW_CONTENT_DISPOSITION } # THUMBOR_ALLOW_CONTENT_DISPOSITION - if ($args ~* "download_filename"){ # THUMBOR_ALLOW_CONTENT_DISPOSITION - add_header 'Content-Disposition' 'attachment; filename="$arg_download_filename"'; # THUMBOR_ALLOW_CONTENT_DISPOSITION - } # THUMBOR_ALLOW_CONTENT_DISPOSITION + if ($args ~* "download_filename"){ # THUMBOR_ALLOW_CONTENT_DISPOSITION + add_header 'Content-Disposition' 'attachment; filename="$arg_download_filename"; filename*="$arg_download_filename"'; # THUMBOR_ALLOW_CONTENT_DISPOSITION + } # THUMBOR_ALLOW_CONTENT_DISPOSITION } location = /healthcheck { @@ -95,9 +95,9 @@ http { add_header 'Content-Disposition' 'attachment'; # THUMBOR_ALLOW_CONTENT_DISPOSITION } # THUMBOR_ALLOW_CONTENT_DISPOSITION - if ($args ~* "download_filename"){ # THUMBOR_ALLOW_CONTENT_DISPOSITION - add_header 'Content-Disposition' 'attachment; filename="$arg_download_filename"; filename*=UTF-8"$arg_download_filename"'; # THUMBOR_ALLOW_CONTENT_DISPOSITION - } # THUMBOR_ALLOW_CONTENT_DISPOSITION + if ($args ~* "download_filename"){ # THUMBOR_ALLOW_CONTENT_DISPOSITION + add_header 'Content-Disposition' 'attachment; filename="$arg_download_filename"; filename*="$arg_download_filename"'; # THUMBOR_ALLOW_CONTENT_DISPOSITION + } # THUMBOR_ALLOW_CONTENT_DISPOSITION } location ~ /\.ht { deny all; access_log off; error_log off; }