• R David Murray's avatar
    #18324: set_payload now correctly handles binary input. · 00ae435d
    R David Murray yazdı
    This also backs out the previous fixes for for #14360, #1717, and #16564.
    Those bugs were actually caused by the fact that set_payload didn't decode to
    str, thus rendering the model inconsistent.  This fix does mean the data
    processed by the encoder functions goes through an extra encode/decode cycle,
    but it means the model is always consistent.  Future API updates will provide
    a better way to encode payloads, which will bypass this minor de-optimization.
    
    Tests by Vajrasky Kok.
    00ae435d
Adı
Son kayıt (commit)
Son güncelleme
..
mime Loading commit data...
__init__.py Loading commit data...
_encoded_words.py Loading commit data...
_header_value_parser.py Loading commit data...
_parseaddr.py Loading commit data...
_policybase.py Loading commit data...
architecture.rst Loading commit data...
base64mime.py Loading commit data...
charset.py Loading commit data...
encoders.py Loading commit data...
errors.py Loading commit data...
feedparser.py Loading commit data...
generator.py Loading commit data...
header.py Loading commit data...
headerregistry.py Loading commit data...
iterators.py Loading commit data...
message.py Loading commit data...
parser.py Loading commit data...
policy.py Loading commit data...
quoprimime.py Loading commit data...
utils.py Loading commit data...