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
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.3/vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.1/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/head.rb
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.1/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/head.rb
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.3/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/head.rb
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/head.rb
challah-rolls-0.1.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/rack-1.4.1/lib/rack/head.rb
challah-rolls-0.1.0 vendor/bundle/gems/rack-1.4.1/lib/rack/head.rb
challah-0.8.0.pre vendor/bundle/gems/rack-1.4.1/lib/rack/head.rb
challah-0.7.1 vendor/bundle/gems/rack-1.4.1/lib/rack/head.rb
bitclust-core-0.5.2 vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/head.rb
bitclust-core-0.5.2 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.1/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/head.rb
classiccms-0.5.10 vendor/bundle/gems/rack-1.4.1/lib/rack/head.rb
classiccms-0.5.9 vendor/bundle/gems/rack-1.4.1/lib/rack/head.rb
challah-0.7.0 vendor/bundle/gems/rack-1.4.1/lib/rack/head.rb
challah-0.7.0.pre2 vendor/bundle/gems/rack-1.4.1/lib/rack/head.rb
bitclust-core-0.5.1 vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/head.rb
classiccms-0.5.8 vendor/bundle/gems/rack-1.4.1/lib/rack/head.rb
classiccms-0.5.7 vendor/bundle/gems/rack-1.4.1/lib/rack/head.rb
classiccms-0.5.6 vendor/bundle/gems/rack-1.4.1/lib/rack/head.rb
classiccms-0.5.5 vendor/bundle/gems/rack-1.4.1/lib/rack/head.rb
challah-0.7.0.pre vendor/bundle/gems/rack-1.4.1/lib/rack/head.rb