Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Jan 23, 2025
1 parent deabbad commit eb42ae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/headers/src/lib/content-disposition.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ describe('ContentDisposition', () => {

it('correctly decodes windows-1252 encoded filename', () => {
let header = new ContentDisposition("attachment; filename*=windows-1252''file%80.txt");
assert.equal(header.preferredFilename, 'file.txt');
assert.equal(header.preferredFilename, 'file\x80.txt');
});

it('handles UTF-8 encoded filename correctly', () => {
Expand Down

0 comments on commit eb42ae2

Please sign in to comment.