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

Unified Diff: Source/platform/network/HTTPRequest.cpp

Issue 314083002: parseHTTPHeaders should return the number of consumed bytes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@async-initializer
Patch Set: Created 6 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 | « Source/platform/network/HTTPParsersTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/network/HTTPRequest.cpp
diff --git a/Source/platform/network/HTTPRequest.cpp b/Source/platform/network/HTTPRequest.cpp
index cd1694e56032c0760a6fbd8be3c5904314ce3563..b0533ee09081866397e932fac4053f6ec14cd47b 100644
--- a/Source/platform/network/HTTPRequest.cpp
+++ b/Source/platform/network/HTTPRequest.cpp
@@ -81,7 +81,7 @@ size_t HTTPRequest::parseHeaders(const char* data, size_t length, String& failur
const char* end = data + length;
AtomicString name;
AtomicString value;
- for (; p < data + length; p++) {
+ while (p < data + length) {
size_t consumedLength = parseHTTPHeader(p, end - p, failureReason, name, value);
if (!consumedLength)
return 0;
« no previous file with comments | « Source/platform/network/HTTPParsersTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698