• Michael Schwarz's avatar
    Fixed #27007 -- Handled non-UTF-8 bytes objects for text/* attachments. · 72d541b6
    Michael Schwarz yazdı
    The fallback logic which allows non-UTF-8 encoded files to be passed to
    attach_file() even when a `text/*` mime type has been specified is
    moved to attach(). Both functions now fall back to a content type of
    `application/octet-stream`.
    
    A side effect is that a file's content is decoded in memory instead of
    opening it in text mode and reading it into a string.
    
    Some mimetype-related logic in _create_attachment() has become
    obsolete as the code moved from attach_file() to attach() already
    handles this.
    72d541b6
Adı
Son kayıt (commit)
Son güncelleme
..
_ext Loading commit data...
_theme Loading commit data...
faq Loading commit data...
howto Loading commit data...
internals Loading commit data...
intro Loading commit data...
man Loading commit data...
misc Loading commit data...
ref Loading commit data...
releases Loading commit data...
topics Loading commit data...
Makefile Loading commit data...
README Loading commit data...
conf.py Loading commit data...
contents.txt Loading commit data...
glossary.txt Loading commit data...
index.txt Loading commit data...
make.bat Loading commit data...
spelling_wordlist Loading commit data...