Don't treat any WS as start of header Check that the header occurs after \n, not other whitespace characters.