зеркало из https://github.com/mozilla/gecko-dev.git
Bug 649338 - Expose mUploadStreamHasHeaders on the HttpBaseChannel, r=bz
This commit is contained in:
Родитель
2b2b9a9fe4
Коммит
1d79c5da4a
|
@ -39,7 +39,7 @@
|
|||
|
||||
interface nsIInputStream;
|
||||
|
||||
[scriptable, uuid(8821E259-7252-4464-B874-A55D8EF6B222)]
|
||||
[scriptable, uuid(AD9D3F1C-A8DE-4d0b-9714-1B922297AD65)]
|
||||
interface nsIUploadChannel2 : nsISupports
|
||||
{
|
||||
/**
|
||||
|
@ -70,4 +70,9 @@ interface nsIUploadChannel2 : nsISupports
|
|||
in long long aContentLength,
|
||||
in ACString aMethod,
|
||||
in boolean aStreamHasHeaders);
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
readonly attribute boolean uploadStreamHasHeaders;
|
||||
};
|
||||
|
|
|
@ -498,6 +498,15 @@ HttpBaseChannel::ExplicitSetUploadStream(nsIInputStream *aStream,
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
HttpBaseChannel::GetUploadStreamHasHeaders(PRBool *hasHeaders)
|
||||
{
|
||||
NS_ENSURE_ARG(hasHeaders);
|
||||
|
||||
*hasHeaders = mUploadStreamHasHeaders;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// HttpBaseChannel::nsIEncodedChannel
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
Загрузка…
Ссылка в новой задаче