Skip to content

Conversation

opaduchak
Copy link
Collaborator

Ticket

Purpose

Changes

Side effects

QA Notes

Deployment Notes

@coveralls
Copy link

coveralls commented Jul 26, 2025

Coverage Status

coverage: 68.544% (+0.01%) from 68.531%
when pulling 46f5c3b on opaduchak:fix/ENG-8472
into 8aa8251 on CenterForOpenScience:feature/buff-worms.

@opaduchak opaduchak changed the base branch from develop to feature/buff-worms July 26, 2025 14:28
Copy link

@sh-andriy sh-andriy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

Copy link
Contributor

@cslzchen cslzchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition to my comment, have we tested locally if this breaks non Cyrillic cases?


def _set_headers(self):
self.set_header('Content-Disposition', 'attachment;filename="{}"'.format('{}.{}'.format(self.metadata.name.replace('"', '\\"'), self.format)))
self.set_header('Content-Disposition', f'attachment;filename*=\'UTF-8\'{quote(self.metadata.name.replace('"', '\\"'))}.{self.format}')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not familiar with this issue. After some googling, I find this suggestion/solution. So it suggests UTF-8'' instead of 'UTF-8'.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for checking, fixed this

@opaduchak opaduchak merged commit ffaba86 into CenterForOpenScience:feature/buff-worms Jul 29, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants