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

Unified Diff: net/http/http_util.h

Issue 1166953002: Use net's response header parser for parsing multipart headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Matt's comments Created 5 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: net/http/http_util.h
diff --git a/net/http/http_util.h b/net/http/http_util.h
index b1585243d3eb0db4b267a0425367012e273a864a..59c9f7d3e9bec05f07eeedbc7dd3b2b02dfb5801 100644
--- a/net/http/http_util.h
+++ b/net/http/http_util.h
@@ -151,6 +151,12 @@ class NET_EXPORT HttpUtil {
// The parameter |i| is the offset within |buf| to begin searching from.
static int LocateEndOfHeaders(const char* buf, int buf_len, int i = 0);
+ // Same as |LocateEndOfHeaders| with the difference that it detects
+ // an empty header list if |buf| starts with a single [CR]LF.
mmenke 2015/06/09 20:23:37 Suggest focusing on what it's used for, rather tha
haavardm 2015/06/10 11:54:02 Agree. I didn't take the http status into the equa
+ static int LocateEndOfAdditionalHeaders(const char* buf,
+ int buf_len,
+ int i = 0);
+
// Assemble "raw headers" in the format required by HttpResponseHeaders.
// This involves normalizing line terminators, converting [CR]LF to \0 and
// handling HTTP line continuations (i.e., lines starting with LWS are

Powered by Google App Engine
This is Rietveld 408576698