mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-18175] Unable to Import Descriptor in HXP Environment (#9097)
This commit is contained in:
@@ -72,7 +72,7 @@ export class AuthBearerInterceptor implements HttpInterceptor {
|
||||
// prevent adding any content type, to properly handle formData with boundary browser generated value,
|
||||
// as adding any Content-Type its going to break the upload functionality
|
||||
|
||||
if (headers.get('Content-Type') === 'multipart/form-data') {
|
||||
if (headers.get('Content-Type') === 'multipart/form-data' && !(reqBody instanceof FormData)) {
|
||||
return headers.delete('Content-Type');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user