Http client支持302跳转
This commit is contained in:
parent
67f7c3dc8f
commit
3c91bf1351
|
|
@ -154,8 +154,8 @@ int64_t HttpClient::onRecvHeader(const char *data, uint64_t len) {
|
|||
shutdown(SockException(Err_shutdown,"未找到Location字段(跳转url)"));
|
||||
return 0;
|
||||
}
|
||||
clear();
|
||||
HttpClient::sendRequest(newUrl,_fTimeOutSec);
|
||||
HttpRequestSplitter::reset();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue