Sha256: f7f0b32c502afac0ab00c97d04b83c09ef17931e5a3b2c4a0f5e24132ce31874

Contents?: true

Size: 257 Bytes

Versions: 206

Compression:

Stored size: 257 Bytes

Contents

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

Version data entries

206 entries across 184 versions & 36 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/rack-1.4.1/lib/rack/head.rb
classiccms-0.7.4 vendor/bundle/gems/rack-1.4.1/lib/rack/head.rb
classiccms-0.7.3 vendor/bundle/gems/rack-1.4.1/lib/rack/head.rb
kastner-rack-0.3.171 lib/rack/head.rb
kastner-rack-0.3.186 lib/rack/head.rb
kjvarga-rack-1.0.0 lib/rack/head.rb
p8-castronaut-0.6.1.1 vendor/rack/lib/rack/head.rb
qoobaa-rack-1.0.0.1 lib/rack/head.rb
qoobaa-rack-1.0.2 lib/rack/head.rb
relevance-castronaut-0.6.0 vendor/rack/lib/rack/head.rb
relevance-castronaut-0.6.1 vendor/rack/lib/rack/head.rb
relevance-castronaut-0.7.4 vendor/rack/lib/rack/head.rb
relevance-castronaut-0.7.5 vendor/rack/lib/rack/head.rb
timocratic-rack-1.0.0 lib/rack/head.rb
candlepin-api-0.4.0 bundle/ruby/1.8/gems/rack-1.3.5/lib/rack/head.rb
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/rack-1.3.5/lib/rack/head.rb
candlepin-api-0.4.0 bundle/ruby/gems/rack-1.3.5/lib/rack/head.rb
classiccms-0.7.2 vendor/bundle/gems/rack-1.4.1/lib/rack/head.rb
classiccms-0.7.1 vendor/bundle/gems/rack-1.4.1/lib/rack/head.rb
classiccms-0.7.0 vendor/bundle/gems/rack-1.4.1/lib/rack/head.rb