give uv downloads the right name

This commit is contained in:
Percs 2024-07-11 18:22:36 -05:00
parent 7d18fadc2c
commit eb501ecf1b

View file

@ -155,7 +155,7 @@ class UVServiceWorker extends Ultraviolet.EventEmitter {
}
// downloads
if (request.destination === 'document') {
if (["document", "iframe"].includes(request.destination)) {
const header = responseCtx.headers['content-disposition'];
// validate header and test for filename