Commit f2d5a9f4 authored by Tsuyoshi Horo's avatar Tsuyoshi Horo Committed by Commit Bot

Treats empty gzipped data as unzipped in web_ui_url_loader_factory.cc

Bug: 793772
Change-Id: Ia9175cf484ba3d26c24d89a4bfcb42b1328b894b
Reviewed-on: https://chromium-review.googlesource.com/818373Reviewed-by: default avatarKinuko Yasuda <kinuko@chromium.org>
Commit-Queue: Tsuyoshi Horo <horo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#523319}
parent 3d199b1b
......@@ -71,6 +71,10 @@ void ReadData(scoped_refptr<ResourceResponse> headers,
base::StringPiece input(reinterpret_cast<const char*>(bytes->front()),
bytes->size());
// Treats empty gzipped data as unzipped.
if (!bytes->size())
gzipped = false;
if (replacements) {
std::string temp_string;
// We won't know the the final output size ahead of time, so we have to
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment