diff --git a/netwerk/protocol/http/nsHttpTransaction.cpp b/netwerk/protocol/http/nsHttpTransaction.cpp index b913b9e6698b..8afeb8bab036 100644 --- a/netwerk/protocol/http/nsHttpTransaction.cpp +++ b/netwerk/protocol/http/nsHttpTransaction.cpp @@ -660,16 +660,21 @@ void nsHttpTransaction::OnTransportStatus(nsITransport* transport, return; } - nsCOMPtr seekable = do_QueryInterface(mRequestStream); - if (!seekable) { + nsCOMPtr tellable = do_QueryInterface(mRequestStream); + if (!tellable) { LOG1( ("nsHttpTransaction::OnTransportStatus %p " - "SENDING_TO without seekable request stream\n", + "SENDING_TO without tellable request stream\n", this)); + MOZ_ASSERT( + !mRequestStream, + "mRequestStream should be tellable as it was wrapped in " + "nsBufferedInputStream, which provides the tellable interface even " + "when wrapping non-tellable streams."); progress = 0; } else { int64_t prog = 0; - seekable->Tell(&prog); + tellable->Tell(&prog); progress = prog; }