This commit is contained in:
yhirose committed 2021-04-05 11:40:53 -04:00
1 parent 6ff84d34d1
commit 9d3365df54
2 files changed
+61

No files matched your search

+3
View File
@@ -5820,6 +5820,9 @@ inline bool ClientImpl::process_request(Stream &strm, Request &req,
req.content_receiver
? static_cast<ContentReceiverWithProgress>(
[&](const char *buf, size_t n, uint64_t off, uint64_t len) {
if (300 < res.status && res.status < 400 && follow_location_) {
return true;
}
auto ret = req.content_receiver(buf, n, off, len);
if (!ret) { error = Error::Canceled; }
return ret;