Open nateberkopec opened 1 year ago
Not sure where to add this.
Does something like this work?
# Validate using Rack::Lint
if config.rack_lint_enabled # rack_lint_enabled is set to true by default
status, headers, body = Rack::Lint.new(@app).call(env)
else
status, headers, body = @app.call(env)
end
@nateberkopec
Ah sorry - I should've been more specific. This should only be added to our test suite.
https://github.com/rack/rack/blob/main/lib/rack/lint.rb
In tests