1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Request#req_env_post_parse - fixup comments [skip ci]

This commit is contained in:
MSP-Greg 2020-10-09 12:17:28 -05:00
parent 7dc7febf9d
commit 5432a7cfc4
No known key found for this signature in database
GPG key ID: D688DA4A77D8FA18

View file

@ -290,12 +290,12 @@ module Puma
end
private :possible_header_injection?
# Fixup any headers with , in the name to have _ now. We emit
# headers with , in them during the parse phase to avoid ambiguity
# with the - to _ conversion for critical headers. But here for
# Fixup any headers with `,` in the name to have `_` now. We emit
# headers with `,` in them during the parse phase to avoid ambiguity
# with the `-` to `_` conversion for critical headers. But here for
# compatibility, we'll convert them back. This code is written to
# avoid allocation in the common case (ie there are no headers
# with , in their names), that's why it has the extra conditionals.
# with `,` in their names), that's why it has the extra conditionals.
# @param env [Hash] see Puma::Client#env, from request, modifies in place
# @version 5.0.3
#