Fixed problem with redirect

This commit is contained in:
yhirose 2019-09-15 09:15:21 -04:00
parent 7e92ffec48
commit 0c293887d0

View file

@ -1568,6 +1568,7 @@ inline bool redirect(T &cli, const Request &req, Response &res,
new_req.headers = req.headers;
new_req.body = req.body;
new_req.redirect_count = req.redirect_count - 1;
new_req.response_handler = req.response_handler;
new_req.content_receiver = req.content_receiver;
new_req.progress = req.progress;