Hi !

I get a failure for
RawPostDataTest#test_put_with_empty_content_type_ignores_body at
r4498:

 2) Error:
test_put_with_empty_content_type_ignores_body(RawPostDataTest):
NoMethodError: undefined method `downcase' for nil:NilClass
   
./test/controller/../../lib/action_controller/cgi_ext/raw_post_data_fix.rb:39:in
`initialize_query'
   C:/ruby/lib/ruby/1.8/cgi.rb:2270:in `initialize'
   ./test/controller/raw_post_test.rb:58:in `cgi_params'
   ./test/controller/raw_post_test.rb:43:in
`test_put_with_empty_content_type_ignores_body'

If we look here, we see the Content-Type header is corrected for POST requests:

http://dev.rubyonrails.org/browser/trunk/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb#L17

Should we correct PUT requests too, or is it better to not assume the
value and correctly implement the test ?

I'm on Win32, if that makes any difference.

Thanks !
--
François Beausoleil
http://blog.teksol.info/
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to