This project is archived and is in readonly mode.
Improved handling for MIME types
-
Seth Fitzsimmons
These patches are also in the
javascript-mime-typebranch ofmojodna/rails -
josh
- Assigned user set to josh
- State changed from new to open
0001 Looks good
0002 In those cases Accept header cases, "#{Mime::JS}, text/html, application/xml, ", why not change the own thing to [Mime::JS, Mime::HTML, Mime::XML].join(", ")
0003 I'm afraid make this change without some other support. I agree, we should do things according to the RFC, but I just want to make sure it won't have any other bad side effect.
-
Seth Fitzsimmons
0002 - I was being lazy and limiting the scope of my changes to javascript-related stuff.
0003 - I agree. This change is likely to affect lots of people that primarily use
text/javascript(we identified this during a code review), so I expect lots of app tests to break (but to be easily fixed).I'm not sure how to go forward with it, but thought that it should at least be raised.
-
Repository
- State changed from open to resolved
(from [f36dafa492e3de66e624d81d6860f5f0536de6b0]) Implement Mime::Type.=~ to match all synonyms against arg [#1573 state:resolved] Signed-off-by: Joshua Peek josh@joshpeek.com http://github.com/rails/rails/co...
-
Repository
(from [4966076d35d5d9510590d87d90dae8daf79b2069]) Use Mime::JS in place of explicit 'text/javascript' [#1573 state:resolved] Signed-off-by: Joshua Peek josh@joshpeek.com http://github.com/rails/rails/co...
-
josh
- State changed from resolved to open
Did you intend to change "script type="text/javascript"" to "script type="application/javascript"" as well? Not sure I want to do that.
-
Seth Fitzsimmons
That was intentional, but I agree, potentially dangerous.
-
josh
Could you please update 0003 to still change the default type, but fix the output from the javascript tag helper.
Should be good to commit then.
-
Seth Fitzsimmons
Will do, but I'm a bit busy, so it might be a week or so until I get to it.
-
josh
- State changed from open to incomplete
-
josh
- Assigned user cleared.
-
Rohit Arondekar
Any updates to this ticket?
Seth, did you get around to editing the 3rd patch?
-
Santiago Pastorino
- State changed from incomplete to open
- Importance changed from to
This issue has been automatically marked as stale because it has not been commented on for at least three months.
The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.
Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.
-
Santiago Pastorino
- State changed from open to stale
