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

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

Issue 1357953002: Replace the existing SpdyHeaderBlock typedef with a class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add NET_EXPORT to fix compile error on win_chromium_compile_dbg_ng. Created 5 years, 3 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_client_bin.cc ('k') | net/tools/quic/quic_spdy_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_spdy_client_stream.cc
diff --git a/net/tools/quic/quic_spdy_client_stream.cc b/net/tools/quic/quic_spdy_client_stream.cc
index e89b925ba380c890cb471b5e2c78af860d422e50..b8cb73b9c5481018a7668c20e2acaaf9b27fc717 100644
--- a/net/tools/quic/quic_spdy_client_stream.cc
+++ b/net/tools/quic/quic_spdy_client_stream.cc
@@ -93,10 +93,11 @@ bool QuicSpdyClientStream::ParseResponseHeaders(const char* data,
data_.append(data + len, data_len - len);
}
if (ContainsKey(response_headers_, "content-length") &&
- !StringToInt(response_headers_["content-length"], &content_length_)) {
+ !StringToInt(StringPiece(response_headers_["content-length"]),
+ &content_length_)) {
return false; // Invalid content-length.
}
- string status = response_headers_[":status"];
+ string status = response_headers_[":status"].as_string();
size_t end = status.find(" ");
if (end != string::npos) {
status.erase(end);
« no previous file with comments | « net/tools/quic/quic_simple_client_bin.cc ('k') | net/tools/quic/quic_spdy_server_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698