fix: resolve crash loading file based serviceworkers (#20142)

This commit is contained in:
trop[bot]
2019-09-05 21:15:17 -07:00
committed by Shelley Vohr
parent fc677b7cf6
commit 4ac616b681
2 changed files with 2 additions and 3 deletions

View File

@@ -694,7 +694,7 @@ void ProxyingURLLoaderFactory::CreateLoaderAndStart(
// Intercept file:// protocol to support asar archives.
if (request.url.SchemeIsFile()) {
asar::CreateAsarURLLoader(request, std::move(loader), std::move(client),
nullptr);
new net::HttpResponseHeaders(""));
return;
}