Replies: 2 comments 1 reply
-
Thank you very much for the report. This is because |
Beta Was this translation helpful? Give feedback.
0 replies
-
Fixed in 8757ac7 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Ran into this when upgrading to Rack 3. The below app will silently ignore the
Content-Type
header (it returnscontent-type: text/html
rather thancontent-type: application/json
), but lowercase other arbitrary capitalized headers.I assume this is related to the Rack 3 change that all headers must be lowercase. So maybe w/ Rack 3 this is now expected behavior, in which case it might just warrant a tiny change to the documentation: https://github.com/jeremyevans/roda/blob/master/lib/roda/plugins/default_headers.rb#L16 -- but it was surprising that it worked for the
"Foo"
header.Rack 3 seems to raise now if you try to assign a non-lowercase header, which was helpful for us when upgrading.
Lowercase
content-type
works as expected:Beta Was this translation helpful? Give feedback.
All reactions