mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2026-10-28 17:47:53 +00:00
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>