mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 12:50:09 +00:00
Bug 1288915 P2 Verify that synthetic download works with a Content-Encoding header set. r=jdm
This commit is contained in:
parent
886f5ab205
commit
1ba8e28352
@ -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',
|
||||
}
|
||||
});
|
||||
}));
|
||||
|
Loading…
x
Reference in New Issue
Block a user