mirror of
https://github.com/rclone/rclone.git
synced 2026-09-24 14:56:20 -04:00
When --onedrive-av-override is set and the object is malware-flagged, download via Microsoft Graph beta contentStream then /content with Prefer: forceInfectedDownload, and keep Prefer (and AVOverride) on the SharePoint redirect without re-encoding tempauth. Clean files keep using the stable v1.0 /content path so permanently enabled av_override does not put all traffic on beta APIs. AI-assisted change; tested against OneDrive for Business with application permissions (client_credentials).