From: Eric Wong Date: Fri, 24 Sep 2021 10:56:45 +0000 (+0000) Subject: fetch: support v2 w/o manifest on old WWW X-Git-Tag: v1.7.0~282 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=77b3dac08f58503e374e98c29b9e0ee7c866c0e5;hp=77b3dac08f58503e374e98c29b9e0ee7c866c0e5;p=public-inbox.git fetch: support v2 w/o manifest on old WWW There may still be pre-manifest.js.gz versions of PublicInbox::WWW running and serving v2 inboxes. While -clone and "add-external --mirror" were working, -fetch was failing due to 301 redirect to $INBOX_URL/manifest.js.gz/ and not the expected 404. Update the code to deal with a JSON decode error (from the 301) and ensure v2 epochs detection is correct (and not using a shadowed variable). ---