mirror of
https://github.com/nginx/nginx.git
synced 2025-06-11 20:53:30 +08:00
fix r2122:
*) update file buf pointers, *) avoid "zero buf" alert
This commit is contained in:
parent
797c6ef394
commit
674371499c
@ -654,7 +654,13 @@ ngx_http_range_singlepart_body(ngx_http_request_t *r,
|
||||
ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
|
||||
"http range body skip");
|
||||
|
||||
if (buf->in_file) {
|
||||
buf->file_pos = buf->file_last;
|
||||
}
|
||||
|
||||
buf->pos = buf->last;
|
||||
buf->sync = 1;
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user