Fixed a bug with the HEAD stuff

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@61 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2004-12-07 11:32:42 +00:00
parent b4f4d038b9
commit 63c4e789b5
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ module ActionController #:nodoc:
$stdout.sync = false
print @cgi.header(@headers)
if @cgi.head?
if @cgi.send(:env_table)['REQUEST_METHOD'] == 'HEAD'
return
elsif @body.respond_to?(:call)
@body.call(self)