The fourth argument to `re.sub` is `count`, but `re.I` (a flag) was passed
instead.
Because if this, messages with a lower-case "content-type" header would
never have their content-type header removed, leading to parse errors.
By explicity naming the parameter (`flags=`) to re.sub, the match
actually becomes case-insensitive.