Skip to content
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.

Commit

Permalink
Merge pull request #71 from bmiro/download_utf8_filename
Browse files Browse the repository at this point in the history
Removed unnecessary UTF-8. Added fix in other case.
  • Loading branch information
psyduck787 committed Mar 16, 2017
2 parents 490bcc6 + fc8148a commit 8830bcc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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; }
Expand Down

0 comments on commit 8830bcc

Please sign in to comment.