Displaying 1 result from an estimated 1 matches for "header_without_rails_fix".
2010 Jul 30
1
[PATCH 1/2] Monkey-patch mongrel to fix rails 2.3.5 incompatibility
...h mongrel and switch to passenger instead.
+class Mongrel::CGIWrapper
+ def header_with_rails_fix(options = 'text/html')
+ @head['cookie'] = options.delete('cookie').flatten.map { |v|
v.sub(/^\n/,'') } if options.class != String and options['cookie']
+ header_without_rails_fix(options)
+ end
+ alias_method_chain(:header, :rails_fix)
+end if (Rails.version == '2.3.5' or Rails.version == '2.3.8') and
Gem.available?('mongrel', Gem::Requirement.new('~>1.1.5')) and
self.class.const_defined?(:Mongrel)
+
--
1.7.2