diff --git a/netwerk/protocol/http/src/nsHttpTransaction.cpp b/netwerk/protocol/http/src/nsHttpTransaction.cpp index e081003397ac..99bf5e153a44 100644 --- a/netwerk/protocol/http/src/nsHttpTransaction.cpp +++ b/netwerk/protocol/http/src/nsHttpTransaction.cpp @@ -44,11 +44,9 @@ #include "nsHttpRequestHead.h" #include "nsHttpResponseHead.h" #include "nsHttpChunkedDecoder.h" -#include "nsNetSegmentUtils.h" #include "nsTransportUtils.h" #include "nsProxyRelease.h" #include "nsIOService.h" -#include "nsNetUtil.h" #include "nsAutoLock.h" #include "pratom.h" @@ -268,12 +266,7 @@ nsHttpTransaction::Init(PRUint8 caps, rv = multi->AppendStream(requestBody); if (NS_FAILED(rv)) return rv; - // wrap the multiplexed input stream with a buffered input stream, so - // that we write data in the largest chunks possible. this is actually - // necessary to workaround some common server bugs (see bug 137155). - rv = NS_NewBufferedInputStream(getter_AddRefs(mRequestStream), multi, - NET_DEFAULT_SEGMENT_SIZE); - if (NS_FAILED(rv)) return rv; + mRequestStream = multi; } else mRequestStream = headers;