Bug 1288915 P2 Verify that synthetic download works with a Content-Encoding header set. r=jdm

This commit is contained in:
Ben Kelly 2016-07-28 15:51:51 -04:00
parent 886f5ab205
commit 1ba8e28352

View File

@ -21,7 +21,9 @@ addEventListener('fetch', function(evt) {
evt.respondWith(registration.unregister().then(function() {
return new Response('service worker generated download', {
headers: {
'Content-Disposition': 'attachment; filename="fake_download.bin"'
'Content-Disposition': 'attachment; filename="fake_download.bin"',
// fake encoding header that should have no effect
'Content-Encoding': 'gzip',
}
});
}));