Skip to content

Commit d2f988a

Browse files
Merge remote-tracking branch 'origin/post-call-fix' into aug_release
2 parents 71d5f20 + a26d682 commit d2f988a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

generator/cybersource-javascript-template/ApiClient.mustache

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,9 @@
526526
if (httpMethod.toLowerCase() === this.constants.POST
527527
|| httpMethod.toLowerCase() === this.constants.PATCH
528528
|| httpMethod.toLowerCase() === this.constants.PUT) {
529-
bodyParam = JSON.stringify(bodyParam, null, 0);
529+
if (body !== "{}") {
530+
bodyParam = JSON.stringify(bodyParam, null, 0);
531+
}
530532
}
531533

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

0 commit comments

Comments
 (0)