make has_bad_header rfc compliant-ish

closes #76