Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 20 lines (15 sloc) 0.257 kb
8b784d3 Ben Alpert Implemented Rack::Head, modified Rack::Lint to ensure responses to HEAD ...
spicyj authored
1 module Rack
2
3 class Head
4 def initialize(app)
5 @app = app
6 end
7
8 def call(env)
9 status, headers, body = @app.call(env)
10
11 if env["REQUEST_METHOD"] == "HEAD"
12 [status, headers, []]
13 else
14 [status, headers, body]
15 end
16 end
17 end
18
19 end
Something went wrong with that request. Please try again.