1
0
mirror of synced 2025-12-18 16:34:09 +03:00

Use std::move for request redirection (#2311)

Prevents an additional copy
This commit is contained in:
Aaron Gokaslan
2025-12-17 12:04:37 -05:00
committed by GitHub
parent 0461cb770c
commit f0990ca96d

View File

@@ -10578,7 +10578,7 @@ inline bool ClientImpl::handle_request(Stream &strm, Request &req,
}
if (300 < res.status && res.status < 400 && follow_location_) {
req = req_save;
req = std::move(req_save);
ret = redirect(req, res, error);
}