Fix type issue in getCacheKey (#8008)

This commit is contained in:
Nicola Krumschmidt
2021-09-13 22:09:17 +02:00
committed by GitHub
parent 7b5c65c455
commit b7779b7b48

View File

@@ -14,5 +14,7 @@ export function getCacheKey(req: Request): string {
};
const key = hash(info);
return key;
// hash() only returns a buffer if the encoding is set to 'buffer'
return key as string;
}