We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fea63b commit c3c1b00Copy full SHA for c3c1b00
projects/ng-http-caching/src/lib/ng-http-caching.service.ts
@@ -459,7 +459,7 @@ export class NgHttpCachingService {
459
}
460
461
// request is allowed if method is in allowedMethod
462
- return this.config.allowedMethod.indexOf(req.method) !== -1;
+ return this.config.allowedMethod.includes(req.method);
463
464
465
/**
0 commit comments