mirror of
https://github.com/arfct/itty-bitty.git
synced 2026-03-11 08:54:33 +00:00
Add googlebot
This commit is contained in:
parent
3dcdb55f14
commit
1a78d6c244
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ export default async (request, context) => {
|
|||
if (uaMatch) { return new Response('', { status: 401 }); }
|
||||
|
||||
if (path != "/" ) {
|
||||
let metadataBots = [ "Twitterbot", "curl", "facebookexternalhit", "Slackbot-LinkExpanding", "Discordbot", "snapchat"]
|
||||
let metadataBots = [ "Twitterbot", "curl", "facebookexternalhit", "Slackbot-LinkExpanding", "Discordbot", "snapchat", "Googlebot"]
|
||||
let isMetadataBot = metadataBots.some(bot => ua.indexOf(bot) != -1);
|
||||
|
||||
if (isMetadataBot && path.endsWith("/")) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue