зеркало из 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 "nsHttpRequestHead.h"
|
||||||
#include "nsHttpResponseHead.h"
|
#include "nsHttpResponseHead.h"
|
||||||
#include "nsHttpChunkedDecoder.h"
|
#include "nsHttpChunkedDecoder.h"
|
||||||
#include "nsNetSegmentUtils.h"
|
|
||||||
#include "nsTransportUtils.h"
|
#include "nsTransportUtils.h"
|
||||||
#include "nsProxyRelease.h"
|
#include "nsProxyRelease.h"
|
||||||
#include "nsIOService.h"
|
#include "nsIOService.h"
|
||||||
#include "nsNetUtil.h"
|
|
||||||
#include "nsAutoLock.h"
|
#include "nsAutoLock.h"
|
||||||
#include "pratom.h"
|
#include "pratom.h"
|
||||||
|
|
||||||
|
@ -268,12 +266,7 @@ nsHttpTransaction::Init(PRUint8 caps,
|
||||||
rv = multi->AppendStream(requestBody);
|
rv = multi->AppendStream(requestBody);
|
||||||
if (NS_FAILED(rv)) return rv;
|
if (NS_FAILED(rv)) return rv;
|
||||||
|
|
||||||
// wrap the multiplexed input stream with a buffered input stream, so
|
mRequestStream = multi;
|
||||||
// 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;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
mRequestStream = headers;
|
mRequestStream = headers;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче