diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-04-25 13:56:37 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-04-25 13:56:37 -0500 |
commit | b69da86ea545b342036fb37a472ec5abefaf3bd5 (patch) | |
tree | 91590afc783500eb48700fe93f1cc66bf493fcf2 /actionpack/lib/action_dispatch/vendor/rack-1.0/rack/head.rb | |
parent | 044794fc9e1235981d20172b96f3b34b044ad19c (diff) | |
download | rails-b69da86ea545b342036fb37a472ec5abefaf3bd5.tar.gz rails-b69da86ea545b342036fb37a472ec5abefaf3bd5.tar.bz2 rails-b69da86ea545b342036fb37a472ec5abefaf3bd5.zip |
Remove vendored version of Rack
Diffstat (limited to 'actionpack/lib/action_dispatch/vendor/rack-1.0/rack/head.rb')
-rw-r--r-- | actionpack/lib/action_dispatch/vendor/rack-1.0/rack/head.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/actionpack/lib/action_dispatch/vendor/rack-1.0/rack/head.rb b/actionpack/lib/action_dispatch/vendor/rack-1.0/rack/head.rb deleted file mode 100644 index deab822a99..0000000000 --- a/actionpack/lib/action_dispatch/vendor/rack-1.0/rack/head.rb +++ /dev/null @@ -1,19 +0,0 @@ -module Rack - -class Head - def initialize(app) - @app = app - end - - def call(env) - status, headers, body = @app.call(env) - - if env["REQUEST_METHOD"] == "HEAD" - [status, headers, []] - else - [status, headers, body] - end - end -end - -end |