Fixed parsing of post headers which has errors