Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(434)

Unified Diff: net/quic/quic_chromium_client_stream.cc

Issue 2077683002: Move the logic for delaying 0-RTT QUIC POST from the QuicStreamFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@QuicHttpStream
Patch Set: Fix BidirectionalStreamQuicImpl Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/quic/quic_chromium_client_stream.cc
diff --git a/net/quic/quic_chromium_client_stream.cc b/net/quic/quic_chromium_client_stream.cc
index 2b72c95174b7d595a344f1a07231cf12f757fb22..539c99094af7f41953694eed94ca95e627c1df56 100644
--- a/net/quic/quic_chromium_client_stream.cc
+++ b/net/quic/quic_chromium_client_stream.cc
@@ -139,6 +139,11 @@ size_t QuicChromiumClientStream::WriteHeaders(
const SpdyHeaderBlock& header_block,
bool fin,
QuicAckListenerInterface* ack_notifier_delegate) {
+ if (!session()->IsCryptoHandshakeConfirmed()) {
+ auto entry = header_block.find(":method");
+ DCHECK(entry != header_block.end());
+ DCHECK_NE("POST", entry->second);
+ }
net_log_.AddEvent(
NetLog::TYPE_QUIC_CHROMIUM_CLIENT_STREAM_SEND_REQUEST_HEADERS,
base::Bind(&QuicRequestNetLogCallback, id(), &header_block,

Powered by Google App Engine
This is Rietveld 408576698