Sha256: f023942c17a7c3a6329b6fe576f4426ef29140a8ec6a41679494f9afca1678a5
Contents?: true
Size: 301 Bytes
Versions: 43
Compression:
Stored size: 301 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" body.close if body.respond_to? :close [status, headers, []] else [status, headers, body] end end end end
Version data entries
43 entries across 38 versions & 13 rubygems