From 67d336a6f27889bdef4723194b6611d049830266 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Fri, 17 Jan 2020 17:11:06 +0100 Subject: No issue - Fix unsafe http methods on HTTP/2 with TLSv1.3 0RTT. --- netwerk/protocol/http/Http2Stream.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'netwerk') diff --git a/netwerk/protocol/http/Http2Stream.cpp b/netwerk/protocol/http/Http2Stream.cpp index 22d8142c9..4401a2612 100644 --- a/netwerk/protocol/http/Http2Stream.cpp +++ b/netwerk/protocol/http/Http2Stream.cpp @@ -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 -- cgit v1.2.3