[AAE-18175] Unable to Import Descriptor in HXP Environment (#9097)

This commit is contained in:
Bartosz Sekula 2023-11-22 10:22:23 +01:00 committed by GitHub
parent 4b3e101586
commit aa05fc28b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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');
} }