fixes backend gone away mixed with empty header strings