]> git.ipfire.org Git - thirdparty/squid.git/commit - src/HttpHeaderRange.h
Bug #624: Various assertion errors on Range requests
authorhno <>
Wed, 7 Jun 2006 01:22:13 +0000 (01:22 +0000)
committerhno <>
Wed, 7 Jun 2006 01:22:13 +0000 (01:22 +0000)
commitfedd15311bf811eb5ef4236306156499e50cec19
treea65f697267534e31352b00d4214e09783bdbff9f
parent49d36dee740052b5930f240194e9ee2f34d0e2c6
Bug #624: Various assertion errors on Range requests

use reply range spec if does not match request range spec (forward as-is)

This assertion is triggered if request range is not satisified by reply.  In
this case, we simply forward the reply as-is.
To forward as-is, we override client_side reply range spec with server_side
reply range spec.

if reply has ranges but request is not: we forward as-is.

Another situation where this assertion is triggered:  if reply is partial
content (status 206) but request is not.  This patch forward as-is the
offending response received on server_side.
src/HttpHdrRange.cc
src/HttpHeaderRange.h
src/client_side.cc
src/client_side.h