Merge branch '1.0.x'

This commit is contained in:
David Lord 2019-07-01 09:52:06 -07:00
commit afd6250bab
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
4 changed files with 6 additions and 2 deletions

View file

@ -610,7 +610,7 @@ def send_file(
"filename": unicodedata.normalize("NFKD", attachment_filename).encode(
"ascii", "ignore"
),
"filename*": "UTF-8''%s" % url_quote(attachment_filename),
'filename*': "UTF-8''%s" % url_quote(attachment_filename, safe=b""),
}
else:
filenames = {"filename": attachment_filename}