修复302跳转时, 如果跨域,header不正确的问题 (#1349)

This commit is contained in:
alexliyu7352 2022-01-09 14:32:59 +08:00 committed by GitHub
parent f4d8eb4515
commit 741b197f31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,6 +104,7 @@ void HttpClient::clearResponse() {
_recved_body_size = 0; _recved_body_size = 0;
_total_body_size = 0; _total_body_size = 0;
_parser.Clear(); _parser.Clear();
_header.clear();
_chunked_splitter = nullptr; _chunked_splitter = nullptr;
_recv_timeout_ticker.resetTime(); _recv_timeout_ticker.resetTime();
_total_timeout_ticker.resetTime(); _total_timeout_ticker.resetTime();