From 11113d03f1526bf2ed68e579a7629c8bb962ba22 Mon Sep 17 00:00:00 2001 From: "darin%netscape.com" Date: Thu, 11 Apr 2002 00:24:06 +0000 Subject: [PATCH] fixes bug 136678 "byte range request fails if server returns anything other than 206" r=dougt sr=rpotts --- netwerk/protocol/http/src/nsHttpChannel.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/netwerk/protocol/http/src/nsHttpChannel.cpp b/netwerk/protocol/http/src/nsHttpChannel.cpp index 82cca3457a1c..7450a3bf1990 100644 --- a/netwerk/protocol/http/src/nsHttpChannel.cpp +++ b/netwerk/protocol/http/src/nsHttpChannel.cpp @@ -561,6 +561,11 @@ nsHttpChannel::ProcessNormal() LOG(("nsHttpChannel::ProcessNormal [this=%x]\n", this)); + // if we're here, then any byte-range requests failed to result in a partial + // response. we must clear this flag to prevent BufferPartialContent from + // being called inside our OnDataAvailable (see bug 136678). + mCachedContentIsPartial = PR_FALSE; + // For .gz files, apache sends both a Content-Type: application/x-gzip // as well as Content-Encoding: gzip, which is completely wrong. In // this case, we choose to ignore the rogue Content-Encoding header. We