Http client 302跳转

This commit is contained in:
xiongziliang
2019-07-01 17:48:09 +08:00
parent 3c91bf1351
commit 339fdf0de4
2 changed files with 1 additions and 2 deletions

View File

@@ -154,7 +154,7 @@ int64_t HttpClient::onRecvHeader(const char *data, uint64_t len) {
shutdown(SockException(Err_shutdown,"未找到Location字段(跳转url)"));
return 0;
}
clear();
HttpClient::clear();
HttpClient::sendRequest(newUrl,_fTimeOutSec);
return 0;
}