The HTTP RFCs specify that spaces and tabs on the beginnings and ends of header values are to be stripped. uhttpd correctly handles this for the beginnings of header values, but not for the ends.
For example, if you send the following request to uhttpd:
The HTTP RFCs specify that spaces and tabs on the beginnings and ends of header values are to be stripped. uhttpd correctly handles this for the beginnings of header values, but not for the ends.
For example, if you send the following request to uhttpd:
...it sees a
Test
header value ofabc \t
, but it should seeabc
.