🔥 Remove unused content
This commit is contained in:
parent
118f64e449
commit
c64e52e872
@ -37,13 +37,8 @@ export const Interceptor = (req: HttpRequest<unknown>, next: HttpHandlerFn): Obs
|
|||||||
return next(req);
|
return next(req);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!req.headers.has('enctype') && !req.headers.has('Content-Type')) {
|
if (!(req.body instanceof FormData) && !req.headers.has('Content-Type')) {
|
||||||
req = req.clone({
|
req = req.clone({ setHeaders: { 'Content-Type': 'application/json' } });
|
||||||
setHeaders: {
|
|
||||||
'Content-Type': 'application/json',
|
|
||||||
'Accept-Language': 'en-US;q=0.9,en-US,en;q=0.8',
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (authService.accessToken && !authService.isTokenExpired(authService.accessToken)) {
|
if (authService.accessToken && !authService.isTokenExpired(authService.accessToken)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user