Message 237832 - Python tracker
I much prefer the new patch with better compatibility and flexibility :)
If you want to strengthen the tests to reflect some of the decisions made here you could add the following tests:
Positive tests:
* putheader('C1-Control', b'next\x85line')
* putheader('Embedded-Fold', 'is\r\n\tallowed')
Negative tests:
* putheader(' Leading-Space', 'value')
* putheader('Embedded: colon', 'extra value')