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

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

Issue 1006193003: Remove Balsa from QuicSpdyClientStream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 9 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/tools/quic/quic_spdy_server_stream.cc
diff --git a/net/tools/quic/quic_spdy_server_stream.cc b/net/tools/quic/quic_spdy_server_stream.cc
index 7a0563d87d64f480dad16cf0e52ab9200ea56e53..68b5c19b6e478f9853052a2e95296acf879594d3 100644
--- a/net/tools/quic/quic_spdy_server_stream.cc
+++ b/net/tools/quic/quic_spdy_server_stream.cc
@@ -42,7 +42,8 @@ uint32 QuicSpdyServerStream::ProcessData(const char* data, uint32 data_len) {
body_.append(data, data_len);
}
DCHECK(!request_headers_.empty());
- if (content_length_ > 0 && static_cast<int>(body_.size()) > content_length_) {
+ if (content_length_ >= 0 &&
+ static_cast<int>(body_.size()) > content_length_) {
SendErrorResponse();
return 0;
}

Powered by Google App Engine
This is Rietveld 408576698