From d3401404546d3a0ff93005b3a0dc8b31a2fc1c76 Mon Sep 17 00:00:00 2001 From: "ruslan%netscape.com" Date: Wed, 5 Apr 2000 05:08:40 +0000 Subject: [PATCH] Fix pipelining case when chunk encoding stream is pushed (pipelining is not a default yet). git-svn-id: svn://10.0.0.236/trunk@65332 18797224-902f-48f8-a5cc-f745e15eee43 --- .../netwerk/protocol/http/src/nsHTTPResponseListener.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mozilla/netwerk/protocol/http/src/nsHTTPResponseListener.cpp b/mozilla/netwerk/protocol/http/src/nsHTTPResponseListener.cpp index 747736ed3b6..681c1a1753d 100644 --- a/mozilla/netwerk/protocol/http/src/nsHTTPResponseListener.cpp +++ b/mozilla/netwerk/protocol/http/src/nsHTTPResponseListener.cpp @@ -458,6 +458,12 @@ nsHTTPServerListener::OnDataAvailable(nsIChannel* channel, } OnStartRequest (nsnull, nsnull); + + PRUint32 streamLen = 0; + i_pStream -> Available (&streamLen); + + if (streamLen > 0) + OnDataAvailable (channel, context, i_pStream, 0, streamLen); } } }