Hi, I was wondering if rack-mini-profiler intends to be compliant with Rack linter (spec 3), and to HTTP 2 standards, which asks to make HTTP Headers lower-case (although they are "compared in a case-insensitive fashion".. don't ask me why).
Am I missing something about rack settings that could disable this rule ? Anyway, it would be nice to make rack mini profiler compliant.
Actually, in order to make rack-mini-profiler to work, I have to patch Rack method check_headers and use Rack Headers class to format rack mini profiler headers (and so all headers from my app, although they are compliant) to avoid this error.
class ::Rack::Lint::Wrapper
alias check_headers_orig check_headers
def check_headers(headers)
headers = Rack::Headers.new(headers)
check_headers_orig(headers)
end
end
Hi, I was wondering if rack-mini-profiler intends to be compliant with Rack linter (spec 3), and to HTTP 2 standards, which asks to make HTTP Headers lower-case (although they are "compared in a case-insensitive fashion".. don't ask me why).
Error 500:
Am I missing something about rack settings that could disable this rule ? Anyway, it would be nice to make rack mini profiler compliant. Actually, in order to make rack-mini-profiler to work, I have to patch Rack method check_headers and use Rack Headers class to format rack mini profiler headers (and so all headers from my app, although they are compliant) to avoid this error.
HTTP 2 Standards for lower-case headers: https://www.rfc-editor.org/rfc/rfc7540#section-8.1.2
Origin issue for lower-case headers of Rack: https://github.com/rack/rack/issues/1592