fix a bug that program can not deal with status:302, which return a hash instead json string