projects
/
feedcatcher.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merged updates from trunk into stable branch
[feedcatcher.git]
/
vendor
/
rails
/
actionpack
/
lib
/
action_controller
/
vendor
/
rack-1.0
/
rack
/
head.rb
diff --git a/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/head.rb
b/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/head.rb
new file mode 100644
(file)
index 0000000..
deab822
--- /dev/null
+++ b/
vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/head.rb
@@ -0,0
+1,19
@@
+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