Skip to content

Commit

Permalink
fix: correct Content-Type header replacement for iso20022 API type
Browse files Browse the repository at this point in the history
  • Loading branch information
kalinkrustev committed Dec 18, 2024
1 parent 6873bd4 commit 36d5c29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/k6-tests/common/replaceHeaders.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export function replaceHeaders(headers) {
if (__ENV.API_TYPE === 'iso20022') {
headers['Accept'] = headers['Accept'].replace('.interoperability.', '.interoperability.iso20022.').replace(/version=.*/, 'version=2.0');
headers['Content-Type'] = headers['Accept'].replace('.interoperability.', '.interoperability.iso20022.').replace(/version=.*/, 'version=2.0');
headers['Content-Type'] = headers['Content-Type'].replace('.interoperability.', '.interoperability.iso20022.').replace(/version=.*/, 'version=2.0');
}
return headers;
}

0 comments on commit 36d5c29

Please sign in to comment.