electron: fallback to load archived version instead of 404 if full url given

dependency: update to latest electron 11 minor version (11.4.8)
This commit is contained in:
Ilya Kreymer
2021-06-04 15:37:28 -07:00
parent f81789c296
commit e542d25a82
5 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -310,9 +310,9 @@ class ElectronReplayApp
}
}
// possible 'live leak' attempt, just return not found
// possible 'live leak' attempt, return archived version, if any
if (request.referrer && request.referrer.startsWith(REPLAY_PREFIX)) {
return this.notFound(request.url, callback);
return await this.resolveArchiveResponse(request, callback);
}
await this.proxyLive(request, callback);