Make sure to always output at least the crlf sequence after the header