mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-30 18:15:11 +00:00
[AAE-18175] Unable to Import Descriptor in HXP Environment (#9097)
This commit is contained in:
parent
4b3e101586
commit
aa05fc28b5
@ -72,7 +72,7 @@ export class AuthBearerInterceptor implements HttpInterceptor {
|
|||||||
// prevent adding any content type, to properly handle formData with boundary browser generated value,
|
// 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
|
// 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');
|
return headers.delete('Content-Type');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user