When an answer isn't JSON, api() showed its first 200 characters. For a
proxy's or tunnel's own HTML page that was markup, e.g. Cloudflare's 524
page as "<!DOCTYPE html> <!--[if lt IE 7]> <html class=…" in precisionz's
screenshot. An HTML answer (by Content-Type, or a body that starts as a
page) is now said as "A proxy in front of magpie answered, not magpie
(<title>)". For 504 and 524 it says that the proxy stopped waiting, magpie
may still be finishing, and to check again in a minute. The status pill
shows one line, so the words that matter come first. Plain-text errors
are shown as before. Strings in zh, zh-TW, ja and de.
Verified:
- internal/gui/tests/plugin-proxy-page.test.cjs (new). It installs from
the Discover field at 420px, with plugins/add answering Cloudflare's
524 page (its head as in the screenshot, the rest from Cloudflare's
template, not captured live) and a 502 with no Content-Type, in en, zh,
ja and de, plus a plain-text 500. Chromium and WebKit: 12 pass. With
api()'s old line put back, every language fails on the raw markup.
- gui-ja, gui-de, gui-zh-tw, i18n-keys and every plugin-*.test.cjs, both
engines: 396 pass, 0 fail.