mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-07-26 04:46:42 -04:00
Reolink cameras may return a 302 redirect from HTTP to HTTPS. LWP::UserAgent does not follow redirects for POST requests, so the login would fail. Detect the redirect, update protocol/host/port from the Location header, disable SSL verification for self-signed camera certs, and retry the POST to the HTTPS endpoint. Subsequent API calls use the updated protocol. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>