Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-1085

Accept header should match only on the media-type's type/subtype and ignore parameters

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.1.0
    • 1.0.0
    • controller
    • None

    Description

      When the controller tries to match a request to a route it will inspect the 'Accept' header. The current implementation will compare the value of media-types against the media-types that a route produces. The problem is that the comparison is done with the complete media-types of the 'Accept' header, when it really should only be comparing the type/subtype. Any additional parameters of the media-types should not be considered at this point.

      This also affect Responders as they need to match a responder for a certain media-type requested.

      Attachments

        Activity

          People

            dbeveniu Daniel Bevenius (Inactive)
            dbeveniu Daniel Bevenius (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: