| Index: sky/services/platform/weburlloader_impl.cc
|
| diff --git a/sky/services/platform/weburlloader_impl.cc b/sky/services/platform/weburlloader_impl.cc
|
| index 596bc599bb4fcfb4f01a5e6bc9c318bed02fe3f3..16f39d6b7425237ae50725138b81ad7aca6b5bd4 100644
|
| --- a/sky/services/platform/weburlloader_impl.cc
|
| +++ b/sky/services/platform/weburlloader_impl.cc
|
| @@ -49,19 +49,9 @@ blink::WebURLResponse ToWebURLResponse(const mojo::URLResponsePtr& url_response)
|
| result.setLoadTiming(timing);
|
|
|
| for (size_t i = 0; i < url_response->headers.size(); ++i) {
|
| - const std::string& header_line = url_response->headers[i];
|
| - size_t first_colon = header_line.find(":");
|
| -
|
| - if (first_colon == std::string::npos || first_colon == 0)
|
| - continue;
|
| -
|
| - std::string value;
|
| - TrimWhitespaceASCII(header_line.substr(first_colon + 1),
|
| - base::TRIM_LEADING,
|
| - &value);
|
| - result.setHTTPHeaderField(
|
| - blink::WebString::fromUTF8(header_line.substr(0, first_colon)),
|
| - blink::WebString::fromUTF8(value));
|
| + const auto& header = url_response->headers[i];
|
| + result.setHTTPHeaderField(blink::WebString::fromUTF8(header->name),
|
| + blink::WebString::fromUTF8(header->value));
|
| }
|
|
|
| return result;
|
|
|