grape
grape copied to clipboard
Use Rack's HeadersHash instead of {}
According to Rack's upgrade guide, we should use Rack::Headers instead of a single Hash to manage response headers. Furthermore, we always used a{} to manage headers but we should had used Rack::Utils::HeaderHash.
Anyway, I think it would be better than using Grape.lowercase_headers?