apache/wink — pull request #1 by ericdahl (2014-09-02 00:25:42+00:00)
Title: Fix Content-Type responses that include Accept header flags

The Content-Type header may include the quality flags or other user-flags.

Below is an example where the Accept quality flag is copied into the response.
```
$ curl -v -H 'Accept: text/plain;q=0.5,application/json;q=0.1' 'http://localhost:8080/'
...
< HTTP/1.1 200 OK
< Date: Tue, 02 Sep 2014 00:22:14 GMT
< Content-Type: text/plain;q=0.5
< Transfer-Encoding: chunked
* Server Jetty(9.2.2.v20140723) is not blacklisted
< Server: Jetty(9.2.2.v20140723)
````

This change updates the Media Type negotiation logic to instead use the produced content-type if compatible, rather than copying the candidate accept header in some cases.