Browse Source

refactor: rename getHeaders to a meaningful one

pull/5430/head
bnymncoskuner 6 years ago
parent
commit
c2e0b3b401
  1. 4
      npm/ng-packs/packages/core/src/lib/interceptors/api.interceptor.ts

4
npm/ng-packs/packages/core/src/lib/interceptors/api.interceptor.ts

@ -16,13 +16,13 @@ export class ApiInterceptor implements HttpInterceptor {
return next return next
.handle( .handle(
request.clone({ request.clone({
setHeaders: this.getHeaders(request.headers), setHeaders: this.getAdditionalHeaders(request.headers),
}), }),
) )
.pipe(finalize(() => this.store.dispatch(new StopLoader(request)))); .pipe(finalize(() => this.store.dispatch(new StopLoader(request))));
} }
getHeaders(existingHeaders?: HttpHeaders) { getAdditionalHeaders(existingHeaders?: HttpHeaders) {
const headers = {} as any; const headers = {} as any;
const token = this.oAuthService.getAccessToken(); const token = this.oAuthService.getAccessToken();

Loading…
Cancel
Save