Skip to content

Commit

Permalink
Merge pull request #193 from mercadopago/release/1.3.2
Browse files Browse the repository at this point in the history
- Fix the warning when defining the binary mode property.
- Fix tracking headers value issue.
  • Loading branch information
Pedro Gonçalves authored Jul 7, 2020
2 parents 0fd97bb + 1744ae1 commit 31d8fff
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions lib/models/preferencesModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ module.exports = {
}
}
}
},
binary_mode: {
type: 'boolean'
}
}
};
6 changes: 3 additions & 3 deletions lib/request-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ requestManager.describe = function (options) {
idempotency: needIdempotency, // Needs the idempotency header
// If the merchant provides an access_token, it should override the access_token configured on init
access_token: config.access_token ? config.access_token : accessToken,
platformId: needPartnersHeaders || configurations.getPlatformId(),
corporationId: needPartnersHeaders || configurations.getCorporationId(),
integratorId: needPartnersHeaders || configurations.getIntegratorId(),
platformId: needPartnersHeaders && configurations.getPlatformId(),
corporationId: needPartnersHeaders && configurations.getCorporationId(),
integratorId: needPartnersHeaders && configurations.getIntegratorId(),
});
}).then(function (response) {
resolve(response);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mercadopago",
"version": "1.3.1",
"version": "1.3.2",
"description": "Mercadopago SDK for Node.js",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 31d8fff

Please sign in to comment.