Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fixed Content-Range parsing. #38

Merged
merged 1 commit into from Sep 21, 2012
Jump to file or symbol
Failed to load files and symbols.
+2 −2
Split
View
@@ -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;
}