mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-17 10:59:39 +00:00
Fix #889
This commit is contained in:
1 parent
6ff84d34d1
commit
9d3365df54
2 files changed
+61
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user