Skip to content

Commit 86f6fe8

Browse files
merged post call fix
1 parent d2f988a commit 86f6fe8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ApiClient.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,9 @@
528528
if (httpMethod.toLowerCase() === this.constants.POST
529529
|| httpMethod.toLowerCase() === this.constants.PATCH
530530
|| httpMethod.toLowerCase() === this.constants.PUT) {
531-
bodyParam = JSON.stringify(bodyParam, null, 0);
531+
if (body !== "{}") {
532+
bodyParam = JSON.stringify(bodyParam, null, 0);
533+
}
532534
}
533535

534536
if (this.merchantConfig.getAuthenticationType().toLowerCase() !== this.constants.MUTUAL_AUTH)

0 commit comments

Comments
 (0)