fix header key conversion to match documentation