Skip to content

Commit

Permalink
Merge pull request fdintino#38 from vojtad/2.2
Browse files Browse the repository at this point in the history
Fixed Content-Range parsing.
  • Loading branch information
vkholodkov committed Sep 21, 2012
2 parents d106b92 + 788ba08 commit 4a9d8b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ngx_http_upload_module.c
Expand Up @@ -4005,8 +4005,8 @@ ngx_http_upload_parse_range(ngx_str_t *range, ngx_http_upload_range_t *range_n)
return NGX_ERROR; return NGX_ERROR;
} }


if(range_n->start >= range_n->end || range_n->start >= range_n->total if(range_n->start > range_n->end || range_n->start >= range_n->total
|| range_n->end > range_n->total) || range_n->end >= range_n->total)
{ {
return NGX_ERROR; return NGX_ERROR;
} }
Expand Down

0 comments on commit 4a9d8b5

Please sign in to comment.