Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/homepage/commit/abcea88d0a0381db7aaedcd5aaa2444560967df6 You should set ROOT_URL correctly, otherwise the web may not work correctly.

Try to handle zlib errors

pull/1612/head
shamoon 2 years ago
parent 3ee6650e6d
commit abcea88d0a

@ -33,6 +33,13 @@ function handleRequest(requestor, url, params) {
const contentEncoding = response.headers['content-encoding']?.trim().toLowerCase();
let responseContent = response;
// zlib errors
responseContent.on("error", (e) => {
logger.error(e);
responseContent = response; // fallback
});
if (contentEncoding === 'gzip' || contentEncoding === 'deflate') {
responseContent = createUnzip();
response.pipe(responseContent);

Loading…
Cancel
Save