On 08 Jun 2011, at 22:22, Joe Koston wrote:

I will try to set HTTP_ACCEPT when I get home. I know it's not being set now, but I wasn't sure if it was required or not.

Something must have changed from 2.3.4 to 3 or I set some configuration in 2.3.4 that I dont remember..

Well, the Accept header is what tells the server what response you accept, while the Content-Type header tells the server what type of data the posted data is, as you can read at http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html

Rails 2 might have been more forgiving or you might have just appended .json to the url, but Rails 3 has the correct behaviour.


Best regards

Peter De Berdt

--
You received this message because you are subscribed to the Google Groups "Ruby on 
Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to