Skip to content

Commit

Permalink
Changes for bug 1408 (mojaloop#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
aenns authored Jun 4, 2020
1 parent 6865838 commit 6c2d42c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mojaloop/ml-api-adapter",
"version": "10.3.1",
"version": "10.3.2",
"description": "Convert from ML API to/from internal Central Services messaging format",
"license": "Apache-2.0",
"private": true,
Expand Down Expand Up @@ -85,7 +85,7 @@
"@mojaloop/central-services-stream": "9.5.0",
"@mojaloop/event-sdk": "9.5.2",
"@mojaloop/forensic-logging-client": "8.3.0",
"@mojaloop/sdk-standard-components": "10.3.1",
"@mojaloop/sdk-standard-components": "10.3.2",
"@now-ims/hapi-now-auth": "2.0.2",
"axios": "0.19.2",
"blipp": "4.0.1",
Expand Down
6 changes: 2 additions & 4 deletions src/lib/headers.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ exports.createCallbackHeaders = (params, fromSwitch = false) => {
const callbackHeaders = { ...params.headers }

callbackHeaders[Enums.Http.Headers.FSPIOP.HTTP_METHOD] = params.httpMethod
if (fromSwitch) {
const uri = Mustache.render(params.endpointTemplate, { ID: params.transferId || null, fsp: params.dfspId || null })
callbackHeaders[Enums.Http.Headers.FSPIOP.URI] = uriRegex.exec(uri)[1]
}
const uri = Mustache.render(params.endpointTemplate, { ID: params.transferId || null, fsp: params.dfspId || null })
callbackHeaders[Enums.Http.Headers.FSPIOP.URI] = uriRegex.exec(uri)[1]

return callbackHeaders
}

0 comments on commit 6c2d42c

Please sign in to comment.