forgot this oops

This commit is contained in:
dangered wolf 2023-04-18 22:07:00 -04:00
parent 8b481bbbae
commit 6dfec85b93
No known key found for this signature in database
GPG key ID: 41E4D37680ED8B58

View file

@ -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'