Closed kenballus closed 3 months ago
Hi @kenballus. Thanks for the report. Yes, that looks like something to clean up. Would you like to prepare a PR?
Upon further investigation, I'm pretty sure this is a bug in Twisted. I'll submit a PR there.
Ok, great. Please do let me know how you get on.
Steps to reproduce
(This application just base64-encodes and echos back various parts of the incoming request)
Test
, then extract and decode theTest
header value:What I expected to happen
RFC 9110 says this:
Daphne complies with this rule for CR and LF, so I expected that Daphne would also comply for NUL by either rejecting the request or replacing the null byte with a space.
Platform
Linux 6.9.6, Daphne main @ 0f15e4595b195a7d6c0cb4df58df69afd6b17045