diff options
author | Matthew Treinish <mtreinish@kortar.org> | 2023-03-10 14:01:48 -0500 |
---|---|---|
committer | Matthew Treinish <mtreinish@kortar.org> | 2023-03-10 14:01:48 -0500 |
commit | 54ea8f2c53155b27e08b77a4d7080188c629bb3a (patch) | |
tree | 445369460a6b7130c7e98eef016da9703b0d9dac | |
parent | b4bcd3c3d1964352d5f51def08629114057541a8 (diff) | |
download | testtools-54ea8f2c53155b27e08b77a4d7080188c629bb3a.tar.gz |
Wrap content-type params in a dictionary
-rw-r--r-- | testtools/testresult/real.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testtools/testresult/real.py b/testtools/testresult/real.py index be9122a..d5efad2 100644 --- a/testtools/testresult/real.py +++ b/testtools/testresult/real.py @@ -762,7 +762,7 @@ def _make_content_type(mime_type=None): msg = email.message.EmailMessage() msg['content-type'] = mime_type - full_type, parameters = msg.get_content_type(), msg['content-type'].params + full_type, parameters = msg.get_content_type(), dict(msg['content-type'].params) # Ensure any wildcards are valid. if full_type == '*': full_type = '*/*' |