Hi
On Thu, Jan 8, 2009 at 14:08, Michael Klishin
<[email protected]> wrote:
>> I overcome it by adding:
>> rack_response[1] = rack_response[1].merge("Content-Length" =>
>> rack_response[2].size.to_s) if rack_response[2].methods.include?
>> "size"
>> just before returning from Merb::Rack::Application#call but it is
>> sort of ugly and I do not know enough internals of Merb/Rack/Phusion
>> to come with something else.
> Can you show your apache config file
PassengerRoot /var/lib/gems/1.8/gems/passenger-2.0.3
PassengerRuby /usr/bin/ruby1.8
PassengerDefaultUser www-data
PassengerMaxPoolSize 4
PassengerPoolIdleTime 360000
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/rail_apps/itiner/current/public
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
</VirtualHost>
Are other options also relevant?
> and the action that is executed in a Merb app? Thanks.
def list
only_provides :json
json = Dir["files/*.idb"].map do |fn|
file = File.new(fn)
{
:name => File.basename(file.path),
:mtime => file.mtime.to_i, #TODO
:size => File.size(file.path)
}
end
display json
end
Best regards,
--
Roman Kamyk
email: [email protected] jid: [email protected]
Protect your digital freedom and privacy, eliminate DRM, learn more at
http://www.defectivebydesign.org/what_is_drm
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---