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

Commit

Permalink
Change content-disposition hack to one-liner form
Browse files Browse the repository at this point in the history
  • Loading branch information
psyduck787 committed Nov 21, 2016
1 parent 2368814 commit dcd38c3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dcd38c3

Please sign in to comment.