summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlib/rack/lint.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rack/lint.rb b/lib/rack/lint.rb
index ed3c7f42..ee3ec716 100755
--- a/lib/rack/lint.rb
+++ b/lib/rack/lint.rb
@@ -303,7 +303,7 @@ module Rack
## (use the versions without <tt>HTTP_</tt>).
%w[HTTP_CONTENT_TYPE HTTP_CONTENT_LENGTH].each { |header|
if env.include? header
- raise LintError, "env contains #{header}, must use #{header[5, -1]}"
+ raise LintError, "env contains #{header}, must use #{header[5..-1]}"
end
}