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