Do not clear parameters when changing the mimetype of a Content-Type header

Authored by vkrause on Oct 31 2017, 11:32 AM.

Description

Do not clear parameters when changing the mimetype of a Content-Type header

Summary:
As there is no API to retrieve and restore all parameters, it is otherwise
impossible to change the mimetype while preserving all other parameters.
This is needed for example when fixing wrong mimetype information for
display in KMail (see D8551).

Test Plan:
Unit test of messagelib (which is the primary consumer of this API) still
pass too.

Reviewers: KDE PIM, knauss

Reviewed By: knauss

Subscribers: knauss

Tags: KDE PIM

Differential Revision: https://phabricator.kde.org/D8568

Details

Committed
vkrauseNov 1 2017, 4:44 PM
Reviewer
knauss
Differential Revision
D8568: Do not clear parameters when changing the mimetype of a Content-Type header
Parents
R180:9d87c6cf68fb: GIT_SILENT: Prepare 5.6.80
Branches
Unknown
Tags
Unknown
References
tag: v17.11.80