From 6dfec85b93e74aeb141454e99a4079129e47f822 Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Tue, 18 Apr 2023 22:07:00 -0400 Subject: [PATCH] forgot this oops --- src/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.ts b/src/server.ts index 57e8a45..1f7cec7 100644 --- a/src/server.ts +++ b/src/server.ts @@ -294,7 +294,7 @@ export const cacheWrapper = async ( /* Itty-router doesn't seem to like routing file names because whatever, so we just handle it in the caching layer instead. Kinda hacky, but whatever. */ if (cacheUrl.pathname === '/robots.txt') { - return new Response(Constants.ROBOTS_TXT, { + return new Response(Strings.ROBOTS_TXT, { headers: { ...Constants.RESPONSE_HEADERS, 'content-type': 'text/plain'