Reto Bachmann-Gmür created WINK-374: ---------------------------------------
Summary: MessageBodyWriter writeTo getting wrong MediaType Key: WINK-374 URL: https://issues.apache.org/jira/browse/WINK-374 Project: Wink Issue Type: Bug Reporter: Reto Bachmann-Gmür When the resource method does not specify a MediaType with @Produces the MessageBodyWriters writeTo method gets invoked with the first media type in the Accept header as mediaType parameter. This is wron, according to section 3.8 of the spec it should be applicat8ion/octet-stream. It is important that the the MessageBody Writer knows if the type was restricted by the resource method (in which case it should get the respective media-type) or not, in which case it might set the http header itself based on the instance to be written. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira