Ticket #559 (closed Feature Request: fixed)

Opened 7 months ago

Last modified 7 months ago

determine whether client prefers one mime type over another

Reported by: JAAulde Owned by: JAAulde
Priority: minor Milestone: 2.1.2
Component: Helpers Version: SVN HEAD
Keywords: Cc:

Description

I would like to be able to pass a list of mime types to a method and get back the one which the requesting user agent prefers. This would be done by comparing 'q' values from the accepts request header. r2506 made this more possible by changing the structure of the accept_types array, so this shouldn't be too difficult.

This ticket/request is for documentation purposes only as I plan to write this.

Change History

Changed 7 months ago by JAAulde

  • status changed from new to closed
  • resolution set to fixed

added feature in r2520

new method is preferred_accept()

Changed 7 months ago by JAAulde

correction to above... revision is r2510

Note: See TracTickets for help on using tickets.