Skip to content

Commit

Permalink
[12501] restore mutlipart/form-data header needed by angular http-cli…
Browse files Browse the repository at this point in the history
…ent to to fix 415 unsupported media type
  • Loading branch information
alep85 committed Sep 14, 2023
1 parent 503261b commit d8c584b
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ export class AuthenticationInterceptor 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') {
return headers.delete('Content-Type');
}

if (!headers.get('Content-Type')) {
return headers.set('Content-Type', 'application/json;charset=UTF-8');
}
Expand Down

0 comments on commit d8c584b

Please sign in to comment.