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

Unified Diff: net/tools/quic/quic_simple_server_stream.cc

Issue 2102253003: Make SpdyHeaderBlock non-copyable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: iOS fix. 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
« no previous file with comments | « net/tools/quic/quic_simple_server_session_test.cc ('k') | net/tools/quic/quic_simple_server_stream_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_simple_server_stream.cc
diff --git a/net/tools/quic/quic_simple_server_stream.cc b/net/tools/quic/quic_simple_server_stream.cc
index d882b72a12e2a3513cfbeebad3757d69497a1640..dda6a420d180bfe726b08222959a97537835c6bc 100644
--- a/net/tools/quic/quic_simple_server_stream.cc
+++ b/net/tools/quic/quic_simple_server_stream.cc
@@ -127,7 +127,7 @@ void QuicSimpleServerStream::PushResponse(
return;
}
// Change the stream state to emulate a client request.
- request_headers_ = push_request_headers;
+ request_headers_ = std::move(push_request_headers);
content_length_ = 0;
DVLOG(1) << "Stream " << id() << ": Ready to receive server push response.";
@@ -203,8 +203,8 @@ void QuicSimpleServerStream::SendResponse() {
}
DVLOG(1) << "Sending response for stream " << id();
- SendHeadersAndBodyAndTrailers(response->headers(), response->body(),
- response->trailers());
+ SendHeadersAndBodyAndTrailers(response->headers().Clone(), response->body(),
+ response->trailers().Clone());
}
void QuicSimpleServerStream::SendNotFoundResponse() {
« no previous file with comments | « net/tools/quic/quic_simple_server_session_test.cc ('k') | net/tools/quic/quic_simple_server_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698