diff --git a/src/index.ts b/src/index.ts index 40e6759..9090509 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,7 +3,9 @@ export default { const url = new URL(request.url); if (url.pathname === '/') { - return new Response(`[CDN] eg: ${request.host}/example.com/file/path`); + return new Response( + `[CDN] eg: https://${request.headers.get('host')}/example.com/file/image.png` + ); } if (url.pathname === '/favicon.ico') {