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

Side by Side Diff: LayoutTests/http/tests/serviceworker/chromium/resources/service-worker-generated-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(
11 new Response(
12 'Ogg',
13 {
14 status: 206,
15 headers: {
16 'content-type': 'audio/ogg',
17 'content-range': 'bytes 0-3/12983'
18 }
19 }));
20 });
falken 2015/07/03 04:10:36 indent two spaces
horo 2015/07/06 11:45:40 Done.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698