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: It is incorrect to send the declared type here. We should use the runtime type.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



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