mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
requirements: Use maintained fork django-sendfile2 of django-sendfile
The original seems to be unmaintained (johnsensible/django-sendfile#65). Notably, this fixes a bug in the filename parameter, which perviously showed the Python 3 repr of a byte string (johnsensible/django-sendfile#49). Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
263d71bf2b
commit
72655611ce
@@ -708,14 +708,14 @@ class FileUploadTest(UploadSerializeMixin, ZulipTestCase):
|
||||
else:
|
||||
self.assertEqual(response.get('Content-disposition'), None)
|
||||
|
||||
check_xsend_links('zulip.txt', 'zulip.txt', "filename*=UTF-8''zulip.txt")
|
||||
check_xsend_links('zulip.txt', 'zulip.txt', 'filename="zulip.txt"')
|
||||
check_xsend_links('áéБД.txt', '%C3%A1%C3%A9%D0%91%D0%94.txt',
|
||||
"filename*=UTF-8''%C3%A1%C3%A9%D0%91%D0%94.txt")
|
||||
check_xsend_links('zulip.html', 'zulip.html', "filename*=UTF-8''zulip.html")
|
||||
check_xsend_links('zulip.sh', 'zulip.sh', "filename*=UTF-8''zulip.sh")
|
||||
check_xsend_links('zulip.html', 'zulip.html', 'filename="zulip.html"')
|
||||
check_xsend_links('zulip.sh', 'zulip.sh', 'filename="zulip.sh"')
|
||||
check_xsend_links('zulip.jpeg', 'zulip.jpeg')
|
||||
check_xsend_links('áéБД.pdf', '%C3%A1%C3%A9%D0%91%D0%94.pdf')
|
||||
check_xsend_links('zulip', 'zulip', "filename*=UTF-8''zulip")
|
||||
check_xsend_links('zulip', 'zulip', 'filename="zulip"')
|
||||
|
||||
def tearDown(self) -> None:
|
||||
destroy_uploads()
|
||||
|
||||
Reference in New Issue
Block a user