Maybe I wasn't clear in my last message, english isn't my first language so I'm sorry if it was the case, but I'm pretty sure that the handling of the request body is a core feature of rails?
What I was trying to say is: Why does it ignore the content type of the request and use a hardcoded encoding when it creates the StringIO return by request.body? This behavior just feel wrong to me, but I asked to be sure that I didn't miss something... anyway! def body if raw_post = @env['RAW_POST_DATA'] raw_post.force_encoding(Encoding::BINARY) Le mardi 9 septembre 2014 20:58:02 UTC-4, Steve Klabnik a écrit : > > This list is for discussion of the core features of the Rails > framework. For help with Rails, please ask rubonrails-talk or Stack > Overflow. Thanks. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-core+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-core@googlegroups.com. Visit this group at http://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/d/optout.