Skip to content

Commit 4a9d8b5

Browse files
committed
Merge pull request fdintino#38 from vojtad/2.2
Fixed Content-Range parsing.
2 parents d106b92 + 788ba08 commit 4a9d8b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ngx_http_upload_module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4005,8 +4005,8 @@ ngx_http_upload_parse_range(ngx_str_t *range, ngx_http_upload_range_t *range_n)
40054005
return NGX_ERROR;
40064006
}
40074007

4008-
if(range_n->start >= range_n->end || range_n->start >= range_n->total
4009-
|| range_n->end > range_n->total)
4008+
if(range_n->start > range_n->end || range_n->start >= range_n->total
4009+
|| range_n->end >= range_n->total)
40104010
{
40114011
return NGX_ERROR;
40124012
}

0 commit comments

Comments
 (0)