Files
changedetection.io/changedetectionio
yi111andYi-111-a b82750421b Fix IndexError on empty/whitespace-only JSON content (#4534)
extract_json_blob_from_html() and extract_json_as_string() both peeked at
content_start[0] to decide whether the body looks like JSON. A blank body
leaves content_start empty, so the peek raised IndexError instead of the
watch reporting that no JSON was found.

Guard the index in both places so empty and whitespace-only content takes
the same JSONNotFound path as any other non-JSON body.

Fixes #4531

Co-authored-by: Yi-111-a <yi-111-a@users.noreply.github.com>
2026-10-23 12:00:11 +02:00
..
…
…