From: Richard Schneeman <richard.schnee...@gmail.com>
Date: Wed, 31 Oct 2012 10:15:12 -0500
Local: Wed, Oct 31 2012 11:15 am
Subject: Re: [Rails-core] Custom accept headers
S w mill wxswcsswxe ce cxssxsqseaxqxxqs six desssssqssssssx. W ce cedsdc cx dA -- Sent from the road
On Wednesday, October 31, 2012 at 6:37 AM, Christopher COCCHI-PERRIER wrote:
> Hi, > Currently I see many applications using custom accept headers for their API versionning such as application/vnd.foo-v1+json or application/vnd.bar-3+xml. But when Rails receive such an accept header, it cannot convert it to a standart Mime::Type and thus causing problems errors when using `respond_to` with :json or :xml.
> And Mime::Type#register only allows to register string not regexp, so it is not convenient when coming to versionning.
> Shouldn't Rails coerce these new almost standart headers to application/json and applicatioin/xml (for previous example) ?
> If you think this should goes into Rails, I'd be happy to provide a pull request.
> Cheers, > -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||