diff --git a/lib/rack/lint.rb b/lib/rack/lint.rb index ed3c7f421..ee3ec7161 100644 --- a/lib/rack/lint.rb +++ b/lib/rack/lint.rb @@ -303,7 +303,7 @@ def check_environment(env) ## (use the versions without HTTP_). %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 }