diff --git a/src/app/app.api-http.ts b/src/app/app.api-http.ts index 514c31e..d002b26 100644 --- a/src/app/app.api-http.ts +++ b/src/app/app.api-http.ts @@ -21,9 +21,9 @@ export class ApiInterceptor implements HttpInterceptor { constructor(private router: Router) {} intercept(request: HttpRequest, next: HttpHandler): Observable> { - const headers = { - 'Content-Type': 'application/json' - }; + const headers = (request.body instanceof FormData) + ? { } + : { 'Content-Type': 'application/json' }; const token = sessionStorage.getItem(this.JWT_KEY); if (token !== null) {