fix: skip proxy route when record analyze

This commit is contained in:
Innei
2022-05-26 00:09:10 +08:00
parent cad51a1c01
commit 4a26a00044

View File

@@ -75,6 +75,10 @@ export class AnalyzeInterceptor implements NestInterceptor {
const url = request.url.replace(/^\/api(\/v\d)?/, '')
if (url.startsWith('/proxy')) {
return call$
}
process.nextTick(async () => {
try {
request.headers['user-agent'] &&