diff options
Diffstat (limited to 'cloudinit')
-rw-r--r-- | cloudinit/UserDataHandler.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cloudinit/UserDataHandler.py b/cloudinit/UserDataHandler.py index 84ad9c9b..541ee87a 100644 --- a/cloudinit/UserDataHandler.py +++ b/cloudinit/UserDataHandler.py @@ -183,7 +183,11 @@ def process_includes(msg, appendmsg=None): explode_cc_archive(payload, appendmsg) continue - part['Content-Type'] = ctype + if 'Content-Type' in msg: + msg.replace_header('Content-Type', ctype) + else: + msg['Content-Type'] = ctype + _attach_part(appendmsg, part) def message_from_string(data, headers={}): |