Previously, Waitress stripped \xa0 and \x85 from the sides of header values before inserting them into the environ dict. Since those bytes are allowed within header values, this could potentially cause data corruption. This patch removes the offending call to str.strip.
Previously, Waitress stripped
\xa0
and\x85
from the sides of header values before inserting them into theenviron
dict. Since those bytes are allowed within header values, this could potentially cause data corruption. This patch removes the offending call tostr.strip
.