зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1253358 - no flags on priority frames r=hurley
This commit is contained in:
Родитель
267eda0f68
Коммит
bf8f0696ad
|
@ -632,6 +632,7 @@ Http2Session::CreateFrameHeader(charType dest, uint16_t frameLength,
|
|||
{
|
||||
MOZ_ASSERT(frameLength <= kMaxFrameData, "framelength too large");
|
||||
MOZ_ASSERT(!(streamID & 0x80000000));
|
||||
MOZ_ASSERT(!frameFlags || (frameType != FRAME_TYPE_PRIORITY));
|
||||
|
||||
dest[0] = 0x00;
|
||||
NetworkEndian::writeUint16(dest + 1, frameLength);
|
||||
|
|
|
@ -738,8 +738,7 @@ Http2Stream::AdjustPushedPriority()
|
|||
mTxInlineFrameUsed += Http2Session::kFrameHeaderBytes + 5;
|
||||
|
||||
mSession->CreateFrameHeader(packet, 5,
|
||||
Http2Session::FRAME_TYPE_PRIORITY,
|
||||
Http2Session::kFlag_PRIORITY,
|
||||
Http2Session::FRAME_TYPE_PRIORITY, 0,
|
||||
mPushSource->mStreamID);
|
||||
|
||||
mPushSource->SetPriority(mPriority);
|
||||
|
|
Загрузка…
Ссылка в новой задаче