lib/rainbows/server_token.rb in rainbows-2.1.0 vs lib/rainbows/server_token.rb in rainbows-3.0.0
- old
+ new
@@ -28,10 +28,10 @@
super
end
def call(env)
status, headers, body = app.call(env)
- headers = Rack::Utils::HeaderHash.new(headers)
+ headers = Rack::Utils::HeaderHash.new(headers) unless Hash === headers
headers[SERVER] = token
[ status, headers, body ]
end
# :startdoc:
end