exit when Location: header detected