Bug #1006
only part of 206 content returned for mod_proxy_core
| Status: | Fixed | Start: | ||
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | core | |||
| Target version: | - | |||
| Pending: | Resolution: | fixed |
||
Description
config:
$HTTP["host"] == "xxx.com" {
proxy-core.backends = ( "10.x.x.x:80")
}
test command:
curl -o /dev/null -v -H'Range: bytes=100-' http://xxx.com/yyyy
bug:
only first chunk of 206 content returned.
fix:
src/connections.c
@@ -323,7 +324,7 @@
break;
case 206: /* write_queue is already prepared */
- con->send->is_closed = 1;
+ if (con->mode == DIRECT) con->send->is_closed = 1;
break;
case 205: /* class: header only */
Associated revisions
fixed the content-length for Range requests from a proxy-backend (fixes #1006)