fix httpheader when exception cause