Skip to content

Commit

Permalink
undo delete disposition change, no effect in chrome still
Browse files Browse the repository at this point in the history
  • Loading branch information
ikreymer committed Dec 31, 2024
1 parent 8a45ba6 commit 8cf4a8b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,8 @@ export class Collection {
response.setRange(range);
}

const ct = response.headers.get("content-type");

const deleteDisposition =
!ct?.startsWith("application/") &&
(request.destination === "iframe" || request.destination === "document");
request.destination === "iframe" || request.destination === "document";
return response.makeResponse(this.coHeaders, deleteDisposition);
}

Expand Down

0 comments on commit 8cf4a8b

Please sign in to comment.