Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

lib/rack/file.rb -- path_info should be a local variable #334

Merged
merged 1 commit into from

2 participants

@ender672

No description provided.

@raggi raggi merged commit fb362aa into rack:master
@raggi
Owner

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/rack/file.rb
View
6 lib/rack/file.rb
@@ -37,8 +37,8 @@ def _call(env)
return fail(405, "Method Not Allowed")
end
- @path_info = Utils.unescape(env["PATH_INFO"])
- parts = @path_info.split SEPS
+ path_info = Utils.unescape(env["PATH_INFO"])
+ parts = path_info.split SEPS
parts.inject(0) do |depth, part|
case part
@@ -63,7 +63,7 @@ def _call(env)
if available
serving(env)
else
- fail(404, "File not found: #{@path_info}")
+ fail(404, "File not found: #{path_info}")
end
end
Something went wrong with that request. Please try again.