MediaTypeHeaderValue should ignore unknow parameters in MIME types #38264
Labels
area-System.Net.Http
backlog-cleanup-candidate
An inactive issue that has been marked for automated closure.
no-recent-activity
Milestone
Description
When
System.Net.Http.Headers.MediaTypeHeaderValue(string)
is used to parse a MIME type which contains an unnecessary parameter like inimage/png;charset=UTF-8
a format exception is thrown. While this modifier makes admittedly little sense, the IEEE spec explicity states that "MIME implementations must also ignore any parameters whose names they do not recognize"Configuration
Reproduced in
netcoreapp3.1
, SDK version3.1.300
Regression
The text was updated successfully, but these errors were encountered: