GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: Phusion Passenger (mod_rails)
Homepage: http://www.modrails.com/
Clone URL: git://github.com/FooBarWidget/passenger.git
Click here to lend your support to: passenger and make a donation at www.pledgie.com !
Fix another compatibility issue.
Hongli Lai (Phusion) (author)
Tue Apr 01 16:19:05 -0700 2008
commit  cd086d6a21cf7f5f89ec82a5fb137dbdad960699
tree    d5d25374effa026dd7ce84d2a2590af253b319a9
parent  e086712b4a9bfaed826511abfeda10f855f012fc
...
212
213
214
215
216
217
218
219
220
221
 
 
 
 
 
222
223
224
...
212
213
214
 
 
 
215
216
217
218
219
220
221
222
223
224
225
226
0
@@ -212,13 +212,15 @@ private
0
 
0
   def preload_application
0
     Object.const_set(:RAILS_ROOT, @app_root)
0
- if defined?(ActionController::Base)
0
- ActionController::Base.page_cache_directory = "#{RAILS_ROOT}/public"
0
- end
0
     if defined?(Rails::Initializer)
0
       Rails::Initializer.run(:set_load_path)
0
     end
0
     require 'config/environment'
0
+ ActionController::Base.page_cache_directory = "#{RAILS_ROOT}/public"
0
+ if defined?(ActionController::Dispatcher) \
0
+ && ActionController::Dispatcher.respond_to?(:error_file_path)
0
+ ActionController::Dispatcher.error_file_path = "#{RAILS_ROOT}/public"
0
+ end
0
     if !defined?(Dispatcher)
0
       require 'dispatcher'
0
     end
...
247
248
249
 
250
251
252
...
247
248
249
250
251
252
253
0
@@ -247,6 +247,7 @@ private
0
     end
0
     
0
     headers = Hash[*headers_data.split("\0")]
0
+ headers_data = nil
0
     headers[CONTENT_LENGTH] = headers[HTTP_CONTENT_LENGTH]
0
     
0
     # TODO:

Comments

    No one has commented yet.