This project is archived and is in readonly mode.
AC::Request#content_type should return a string
-
Michael Schuerig
I just found out that the solution isn't that easy. It just blows up in another place, namely in request verification where it is assumed that request.content_type is a Mime::Type
def verifiable_request_format? !request.content_type.nil? && request.content_type.verify_request? endThe easiest solution would be to have Rack call #to_s on whatever it gets from Rack::Request#content_type.
-
CancelProfileIsBroken
Is this still a problem if you pull 2-3-stable now? Bundled rack was just removed a couple of hours ago, and a few other changes to accommodate the Rack release. Just want to be sure before anyone goes digging.
-
Michael Schuerig
That one bows up instantly as there are still references to ActionController::RewindableInput which doesn't exist anymore.
-
CancelProfileIsBroken
- Assigned user set to josh
Looks like yours, Josh. Confirmed that AC is still attempting to autoload RewindableInput on 2-3-stable.
-
Hongli Lai
These 2 patches fix the problem. Created against the 2-3-stable branch.
-
josh
- State changed from new to resolved
-
Bill
This worked for me- modifying my code to match the patches did not .
(in initializers/mime_fix.rb) module Mime
class Type def split(*args) to_s.split(*args) end endend
