[
https://issues.apache.org/jira/browse/WINK-172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bryant Luk resolved WINK-172.
-----------------------------
Resolution: Fixed
Throws a 400 on illegal media type accept headers except for the "*" case which
turns it into a "*/*".
> Improve invalid media type toleration
> -------------------------------------
>
> Key: WINK-172
> URL: https://issues.apache.org/jira/browse/WINK-172
> Project: Wink
> Issue Type: Bug
> Components: Common
> Affects Versions: 0.2
> Reporter: Bryant Luk
> Assignee: Bryant Luk
> Fix For: 0.2
>
>
> Improve the toleration of invalid media types. Certain common client code
> send invalid media type headers. For those cases, I think it's easier to
> just skip invalid media types or to "correct" those media types.
> The two I think should be corrected:
> "*" turn to MediaType.WILDCARD
> "text/" (missing subtype) turn to "text/*" (or as appropriate)
> The rest I think should be tolerated as invalid if possible (i.e. skip the
> invalid media type).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.