JsonContent always instantiates a new MediaTypeHeaderValue when not specified #50959
Unanswered
paulomorgado
asked this question in
Q&A
Replies: 1 comment
-
The problem is that it is mutable and others could change it in like a custom |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When a media type is not specified,
JsonContent
constructor always instantiates a newMediaTypeHeaderValue
throughJsonHelpers.GetDefaultMediaType()
.Is that intended?
Could it be cached?
Beta Was this translation helpful? Give feedback.
All reactions