Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(655)

Side by Side Diff: LayoutTests/http/tests/serviceworker/chromium/resources/service-worker-proxied-mixed-response-worker.js

Issue 1226473002: Add LayoutTests for mixed range response handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 self.addEventListener('fetch', function(event) {
2 if (event.request.url.indexOf('blank.html') != -1) {
3 // The request is for the page load.
4 return;
5 }
6 if (event.request.headers.get('range') != 'bytes=0-') {
7 // The request is not the first range request.
8 return;
9 }
10 event.respondWith(fetch('service-worker-proxied-mixed-response.php'));
11 });
falken 2015/07/03 04:10:36 indent two
horo 2015/07/06 11:45:40 Done.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698