diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-04-01 15:44:22 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-04-01 15:44:22 -0700 |
commit | e5bf7b7207d69daf1c3537797aeeab2642f19514 (patch) | |
tree | 8c4a1b5fb14b207ad23b71e214c15ce5e465dc69 /test/rails/app-2.3.8/app/controllers/foo_controller.rb | |
parent | c1ebb313735a280582d87c1ba44619aa47e00b06 (diff) | |
download | unicorn-e5bf7b7207d69daf1c3537797aeeab2642f19514.tar.gz |
They were transitionary releases and the logic to deal with them and Rack versioning was too much overhead.
Diffstat (limited to 'test/rails/app-2.3.8/app/controllers/foo_controller.rb')
-rw-r--r-- | test/rails/app-2.3.8/app/controllers/foo_controller.rb | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/test/rails/app-2.3.8/app/controllers/foo_controller.rb b/test/rails/app-2.3.8/app/controllers/foo_controller.rb deleted file mode 100644 index 54ca1ed..0000000 --- a/test/rails/app-2.3.8/app/controllers/foo_controller.rb +++ /dev/null @@ -1,36 +0,0 @@ -# -*- encoding: binary -*- - -require 'digest/sha1' -class FooController < ApplicationController - def index - render :text => "FOO\n" - end - - def xcookie - cookies["foo"] = "cookie-#$$-#{session[:gotta_use_the_session_in_2_3]}" - render :text => "" - end - - def xnotice - flash[:notice] = "session #$$" - render :text => "" - end - - def xpost - if request.post? - digest = Digest::SHA1.new - out = "params: #{params.inspect}\n" - if file = params[:file] - loop do - buf = file.read(4096) or break - digest.update(buf) - end - out << "sha1: #{digest.to_s}\n" - end - headers['content-type'] = 'text/plain' - render :text => out - else - render :status => 403, :text => "need post\n" - end - end -end |