diff options
author | Konstantin Haase <konstantin.mailinglists@googlemail.com> | 2014-10-02 15:35:27 +0200 |
---|---|---|
committer | Konstantin Haase <konstantin.mailinglists@googlemail.com> | 2014-10-02 15:35:27 +0200 |
commit | ab172af1b63f0d8e91ce579dd2907c43b96cf82a (patch) | |
tree | 991037ede0df148b5aef7137f321591401f98d53 /lib/rack/head.rb | |
parent | a71be3c914c10d1089238f4e21b029b885be4029 (diff) | |
parent | dc53a8c26dc55d21240233b3d83d36efdef6e924 (diff) | |
download | rack-ab172af1b63f0d8e91ce579dd2907c43b96cf82a.tar.gz |
Merge pull request #737 from schneems/schneems/less-objects
Less allocated objects on each request
Diffstat (limited to 'lib/rack/head.rb')
-rw-r--r-- | lib/rack/head.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rack/head.rb b/lib/rack/head.rb index 72f3dbdd..f487254a 100644 --- a/lib/rack/head.rb +++ b/lib/rack/head.rb @@ -12,7 +12,7 @@ class Head def call(env) status, headers, body = @app.call(env) - if env["REQUEST_METHOD"] == "HEAD" + if env[REQUEST_METHOD] == HEAD [ status, headers, Rack::BodyProxy.new([]) do body.close if body.respond_to? :close |