Skip to content

Commit

Permalink
transfer: pass the content-type header with its specific URI
Browse files Browse the repository at this point in the history
  • Loading branch information
bearn01d committed Feb 15, 2024
1 parent e249de6 commit ef8d295
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ the detailed section referring to by linking pull requests or issues.

#### Patch

- Fix `Content-Type` header being ignored by backend for transfers

#### Deployment Migration Notes

## [v2.4.0] 2024-02-14
Expand Down
9 changes: 7 additions & 2 deletions src/app/core/services/http-params-mapper.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,13 @@ export class HttpRequestParamsMapper {
[DataAddressProperty.queryParams]: httpRequestParams.queryParams,
...mapKeys(
httpRequestParams.headers,
(k) => `${DataAddressProperty.header}:${k}`,
),
(k) => {
if(k.toLowerCase() === 'content-type') {
return DataAddressProperty.contentType;
} else {
return `${DataAddressProperty.header}:${k}`;
}
}),
};
return removeNullValues(props);
}
Expand Down

0 comments on commit ef8d295

Please sign in to comment.