| Index: third_party/WebKit/Source/platform/network/HTTPParsers.cpp
|
| diff --git a/third_party/WebKit/Source/platform/network/HTTPParsers.cpp b/third_party/WebKit/Source/platform/network/HTTPParsers.cpp
|
| index 1394de50114c89898aa7cb4130cb2babd9af521c..1ff1cc6e568ecac757a5550d969709f10073f6e7 100644
|
| --- a/third_party/WebKit/Source/platform/network/HTTPParsers.cpp
|
| +++ b/third_party/WebKit/Source/platform/network/HTTPParsers.cpp
|
| @@ -34,6 +34,7 @@
|
|
|
| #include "net/http/http_response_headers.h"
|
| #include "net/http/http_util.h"
|
| +#include "platform/json/JSONParser.h"
|
| #include "platform/network/ResourceResponse.h"
|
| #include "platform/weborigin/Suborigin.h"
|
| #include "public/platform/WebString.h"
|
| @@ -896,4 +897,14 @@ bool parseMultipartHeadersFromBody(const char* bytes,
|
| return true;
|
| }
|
|
|
| +// See https://tools.ietf.org/html/draft-ietf-httpbis-jfv-01, Section 4.
|
| +std::unique_ptr<JSONArray> parseJSONHeader(const String& header) {
|
| + StringBuilder sb;
|
| + sb.append("[");
|
| + sb.append(header);
|
| + sb.append("]");
|
| + std::unique_ptr<JSONValue> headerValue = parseJSON(sb.toString());
|
| + return JSONArray::cast(std::move(headerValue));
|
| +}
|
| +
|
| } // namespace blink
|
|
|