Skip to content

Commit

Permalink
Use lowercase header in validate_with_lint helper
Browse files Browse the repository at this point in the history
Casue: Response header keys can no longer include uppercase characters.
  • Loading branch information
lloeki committed Jan 2, 2024
1 parent 6a805aa commit ab9ad02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Expand Up @@ -66,7 +66,7 @@ def failure_message_when_negated
class ValidateWithLint
def matches?(request)
@request = request
Rack::Lint.new(proc{[200, {'Content-Type' => 'text/html', 'Content-Length' => '0'}, []]}).call(@request.env)
Rack::Lint.new(proc{[200, {'content-type' => 'text/html', 'content-length' => '0'}, []]}).call(@request.env)
true
rescue Rack::Lint::LintError => e
@message = e.message
Expand Down

0 comments on commit ab9ad02

Please sign in to comment.