This project is archived and is in readonly mode.
ActionController::Request#content_charset always fails
Reported by Jarl Friis | March 4th, 2010 @ 11:40 PM | in 3.0.2
I am trying to log the charset of the request. But it always
fails:
NoMethodError (private method
split' called for
#<Mime::Type:0x7f13fda04e08>):
This is because the method Rack::Request#content_type is overriden in ActionController::Request, therefore Rack::Request#content_charset always fails.
Jarl
Comments and changes to this ticket
-
Yehuda Katz (wycats) March 28th, 2010 @ 09:45 PM
- State changed from new to resolved
- Assigned user set to Yehuda Katz (wycats)
- Milestone cleared.
Closed by 77a2a3d9b3aa461437ced326ea4a70112a8c68ed
-
Jeremy Kemper October 15th, 2010 @ 11:01 PM
- Milestone set to 3.0.2
- Importance changed from to Low
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Referenced by
- 6698 Rack::Request#content_charset is always blank due to ActionDispatch::MimeNegotation#content_type It looks like #4109 was intended to fix this in commit 77...