Fix unsafe http methods on HTTP/2 with TLSv1.3 0RTT.

This commit is contained in:
Fedor 2020-03-12 20:41:04 +03:00
parent 46d1844658
commit 3b7c93782f
1 changed files with 6 additions and 2 deletions

View File

@ -1478,8 +1478,12 @@ bool
Http2Stream::Do0RTT()
{
MOZ_ASSERT(mTransaction);
mAttempting0RTT = true;
return mTransaction->Do0RTT();
if (mTransaction->Do0RTT()) {
mAttempting0RTT = true;
} else {
mAttempting0RTT = false;
}
return mAttempting0RTT;
}
nsresult