Permalink
Browse files

Merge pull request #38 from vojtad/2.2

Fixed Content-Range parsing.
  • Loading branch information...
2 parents d106b92 + 788ba08 commit 4a9d8b5353419a1d11c005bfd2fd3e001dd371e0 @vkholodkov committed Sep 21, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 ngx_http_upload_module.c
@@ -4005,8 +4005,8 @@ ngx_http_upload_parse_range(ngx_str_t *range, ngx_http_upload_range_t *range_n)
return NGX_ERROR;
}
- if(range_n->start >= range_n->end || range_n->start >= range_n->total
- || range_n->end > range_n->total)
+ if(range_n->start > range_n->end || range_n->start >= range_n->total
+ || range_n->end >= range_n->total)
{
return NGX_ERROR;
}

0 comments on commit 4a9d8b5

Please sign in to comment.