Sha256: 9c757e46bd9f7a903b1af2f7dfd52c87b34d57ee83490cd243082e9e03c3cd7a
Contents?: true
Size: 786 Bytes
Versions: 2
Compression:
Stored size: 786 Bytes
Contents
# -*- encoding : utf-8 -*- =begin Copyright (C) 2009 Sam Roberts This library is free software; you can redistribute it and/or modify it under the same terms as the ruby language itself, see the file COPYING for details. =end require 'sinatra/base' # Auto-choose our handler based on the environment. # TODO Code should be in Sinatra, and should handle Thin, Mongrel, etc. Sinatra::Base.configure do server = Sinatra::Base.server Sinatra::Base.set :server, Proc.new { if ENV.include?("PHP_FCGI_CHILDREN") break "fastcgi" # Must NOT be the correct class name! elsif ENV.include?("REQUEST_METHOD") break "cgi" # Must NOT be the correct class name! else # Fall back on whatever it was going to be. server end } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vpim-24.2.20 | lib/vpim/agent/handler.rb |
vpim-13.11.11 | lib/vpim/agent/handler.rb |