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

Unified Diff: Source/platform/network/HTTPParsers.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
Index: Source/platform/network/HTTPParsers.cpp
diff --git a/Source/platform/network/HTTPParsers.cpp b/Source/platform/network/HTTPParsers.cpp
index 71b6f4dc27690722e24470e0ea136aa3f07de4ee..452814f5e6d6a8779fe5195536f630f62ea37f50 100644
--- a/Source/platform/network/HTTPParsers.cpp
+++ b/Source/platform/network/HTTPParsers.cpp
@@ -668,7 +668,8 @@ static bool parseHTTPHeaderValue(const char* s, size_t start, size_t size, Strin
return false;
}
- *position = i + 1;
+ // 2 for strlen("\r\n")
+ *position = i + 2;
return true;
}

Powered by Google App Engine
This is Rietveld 408576698