The ContentType is currently set the the media type of the accept header. That is not right. We need to select the first matching media type of the HttpContentCodec. Accept might be */* but we want to return application/json, if found in the HttpContentCodec
The ContentType is currently set the the media type of the accept header. That is not right. We need to select the first matching media type of the
HttpContentCodec
. Accept might be*/*
but we want to returnapplication/json
, if found in theHttpContentCodec
fixes #3023 /claim #3023