Closed CrowdHailer closed 6 years ago
Raxx.set_header(message, key, value) must not accept a value containing the \r or \n charachters.
Raxx.set_header(message, key, value)
\r
\n
https://github.com/elixir-plug/plug/blob/master/lib/plug/conn.ex#L1269-L1274
QUESTION: should the header key not be checked to ensure no newline charachters. I guess also no colon (:)
:
Docs for set header should reference rfc7540 for acceptable charachters in header and value
Fixed in PR #96
Raxx.set_header(message, key, value)
must not accept a value containing the\r
or\n
charachters.https://github.com/elixir-plug/plug/blob/master/lib/plug/conn.ex#L1269-L1274
QUESTION: should the header key not be checked to ensure no newline charachters. I guess also no colon (
:
)Docs for set header should reference rfc7540 for acceptable charachters in header and value