зеркало из https://github.com/mozilla/gecko-dev.git
fixing bug 334142 "Firefox 1.5.0.2 doesn't work with some online banking systems" r+sr=bzbarsky
This commit is contained in:
Родитель
3b53d312f4
Коммит
c6846a8db6
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче