We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2616acb commit 7ceed8cCopy full SHA for 7ceed8c
spec/middleware_spec.rb
@@ -5,8 +5,8 @@ def app; Rack::Lint.new(@app); end
5
def mock_app(options = {}, conditions = {}, custom_headers = {})
6
main_app = lambda { |env|
7
@env = env
8
- headers = {'Content-Type' => "text/html"}.merge custom_headers
9
- [200, headers.dup, @body || ['Hello world!']]
+ full_headers = headers.merge custom_headers
+ [200, full_headers, @body || ['Hello world!']]
10
}
11
12
builder = Rack::Builder.new
0 commit comments