service worker: s13n: remove special range request handling
Consider the scenario: 1. Page makes a range request 2. Service worker responds with 200 status and a big blob. Previously, S13nServiceWorker loading code returned to the page a 200 status and attempted to return only the requested bytes from the blob. This was incorrect: if a 200 status response is returned, all the bytes should be present. Furthermore, since the service worker itself didn't return a 206 status response, it is probably not correct for the loading code to attempt to convert it to one. This CL changes the code to return exactly what the service worker returned. Bug: 892227 Change-Id: Id032ba73ae0a61b300f2d45c1cbf2ba041481788 Reviewed-on: https://chromium-review.googlesource.com/c/1267057Reviewed-by:Marijn Kruisselbrink <mek@chromium.org> Reviewed-by:
Ben Kelly <wanderview@chromium.org> Commit-Queue: Matt Falkenhagen <falken@chromium.org> Cr-Commit-Position: refs/heads/master@{#597608}
Showing
Please register or sign in to comment