Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Custom accept headers
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Richard Schneeman  
View profile  
 More options Oct 31 2012, 11:15 am
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

--
Richard Schneeman
http://heroku.com
@schneems

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 received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-core/-/CubR52aCYWcJ.
> To post to this group, send email to rubyonrails-core@googlegroups.com.
> To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.


 
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.