Charset wrapped with "" in Content-Type header rises issue in model binding #5349
Comments
@dopare Did you mean to close this? |
@dopare Can you also share with us which particular service is sending this header so that we can get a feel for the customer impact? |
This exception is actually catched by the MVC. @danroth27 third party service is http://medical.logicnets.com/ designer. |
@danroth27, @Eilon MVC does Similar problems exist for any quoted parameter MVC receives e.g. MVC ignores The bug here is that MVC creates different FYI the |
- #5349 - fix or add comments about other parsing errors and inconsistencies - `MediaType` did not skip whitespace before the type - look for `// ???` comments for questions about the inconsistencies nits: - use `+=` - `<code>` -> `<c>` since the former is not for use within a paragraph - split tests up to remove `bool expectedResult` parameters
- #5349 - fix or add comments about other parsing errors and inconsistencies - `MediaType` did not skip whitespace before the type - look for `// ???` comments for questions about the inconsistencies nits: - use `+=` - `<code>` -> `<c>` since the former is not for use within a paragraph - split tests up to remove `bool expectedResult` parameters
- #5349 - fix or add comments about other parsing errors and inconsistencies - `MediaType` did not skip whitespace before the type - look for `// ???` comments for questions about the inconsistencies nits: - use `+=` - `<code>` -> `<c>` since the former is not for use within a paragraph - split tests up to remove `bool expectedResult` parameters
- #5349 - fix or add comments about other parsing errors and inconsistencies - `MediaType` did not skip whitespace before the type nits: - use `+=` - `<code>` -> `<c>` since the former is not for use within a paragraph - split tests up to remove `bool expectedResult` parameters
My application works with 3rd party web service which sends request with
Content-Type: text/html; charset="utf-8"
instead ofContent-Type: text/html; charset=utf-8
In MVC's model binding phase I get such
ArgumentException
'"utf-8"' is not a supported encoding name. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.
I am not sure this issue is related to Kestrel.
Please help.
Call stack:
Application is running on
net451
.dependencies:
dotnet --info
output:The text was updated successfully, but these errors were encountered: