Skip to content

Commit

Permalink
tidy for pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesruston committed Dec 9, 2013
1 parent 10e41be commit f8a2ac1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/rack/cache/context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def call!(env)
@default_options.each { |k,v| env[k] ||= v }
@env = env
@request = Request.new(@env.dup.freeze)

response =
if @request.get? || @request.head?
if !@env['HTTP_EXPECT'] && !@env['rack-cache.force-pass']
Expand Down
2 changes: 1 addition & 1 deletion test/context_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

it "passes on options requests" do
respond_with 200
request "OPTIONS", '/'
request "options", '/'

app.should.be.called
response.should.be.ok
Expand Down

0 comments on commit f8a2ac1

Please sign in to comment.