Skip to content

Commit

Permalink
Merge pull request #6 from demetriusnunes/patch-1
Browse files Browse the repository at this point in the history
Fixed parameters parsing typos
  • Loading branch information
noogen authored Aug 8, 2017
2 parents e00f563 + 4ecef80 commit 8e0dfac
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions files/etc/nginx/sites-enabled/server.conf
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ server {
}

if ($myargs ~ "w([_]*)(\d+)") {
set $quality $2;
set $width $2;
}

if ($arg_w) {
Expand All @@ -144,11 +144,11 @@ server {
}

if ($myargs ~ "h([_]*)(\d+)") {
set $quality $2;
set $height $2;
}

if ($arg_h) {
set $width $arg_h;
set $height $arg_h;
}

# quality
Expand All @@ -157,7 +157,7 @@ server {
}

if ($arg_q) {
set $width $arg_q;
set $quality $arg_q;
}

# rotate
Expand All @@ -166,7 +166,7 @@ server {
}

if ($arg_r) {
set $width $arg_r;
set $rotate $arg_r;
}

# gravity
Expand Down

0 comments on commit 8e0dfac

Please sign in to comment.