Page breaks when fetched/returned by worker

I have this public share link: https://view.monday.com/3776000595-36cfd13f4d0b049a330a3952bdae0ff9
and this bit of worker code I copied from the examples:
export default {
  async fetch(request) {
    const url = 'https://view.monday.com/3776000595-36cfd13f4d0b049a330a3952bdae0ff9';

    async function gatherResponse(response) {
      const { headers } = response;
      const contentType = headers.get('content-type') || '';
      if (contentType.includes('application/json')) {
        return JSON.stringify(await response.json());
      } else if (contentType.includes('application/text')) {
        return response.text();
      } else if (contentType.includes('text/html')) {
        return response.text();
      } else {
        return response.text();
      }
    }

    const init = {
      headers: {
        'content-type': 'text/html;charset=UTF-8',
      },
    };

    const response = await fetch(url, request);
    const results = await gatherResponse(response);
    return new Response(results, init);
  },
};

If I go directly to the link in my browser the page loads like I expect but if I instead fetch the same page with a worker and return it, then the page is broken.

Anyone have any idea what I can do to get this page working?
Was this page helpful?