Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Commented Issue: MediaTypeFormatter.SetDefaultContentHeaders doesn't receive the runtime type of the object being serialized [279]

$
0
0
ODataFormatter sends different response content type header depending on the type of the object being serialized. For example, serializing a Product might send "application/atom-xml;odata=entry" and serializing a collection of Products would send "application/atom-xml; odata=feed".
Comments: This is a breaking change but we do think it is important. However, the problem is larger than just the type passed into this method: Much of the formatter system takes in declared types instead of instance types, and if we change the system, we have to change it everywhere.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>