mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader
synced 2025-07-31 00:22:00 +08:00
fix: robots-txt location
This commit is contained in:
parent
101cb19dde
commit
0d6cf2b1d1
@ -31,7 +31,7 @@ export class RobotsTxtService extends AsyncService {
|
|||||||
|
|
||||||
async getCachedRobotTxt(origin: string) {
|
async getCachedRobotTxt(origin: string) {
|
||||||
const digest = md5Hasher.hash(origin.toLowerCase());
|
const digest = md5Hasher.hash(origin.toLowerCase());
|
||||||
const cacheLoc = `/robots-txt/${digest}`;
|
const cacheLoc = `robots-txt/${digest}`;
|
||||||
let buff;
|
let buff;
|
||||||
buff = await this.firebaseStorageBucketControl.downloadFile(cacheLoc).catch(() => undefined);
|
buff = await this.firebaseStorageBucketControl.downloadFile(cacheLoc).catch(() => undefined);
|
||||||
if (buff) {
|
if (buff) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user