Skip to content

Commit

Permalink
fix: content type set and new line added at end of domain association (
Browse files Browse the repository at this point in the history
  • Loading branch information
zenit2001 authored Nov 27, 2023
1 parent 19d2765 commit c06c42d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ server.prepend('Start', (req, res, next) => {
if (origin.match(constants.APPLE_DOMAIN_URL)) {
const applePayDomainAssociation =
AdyenConfigs.getApplePayDomainAssociation();
response.getWriter().print(applePayDomainAssociation);
res.setHttpHeader(dw.system.Response.CONTENT_TYPE, 'text/plain');
response.getWriter().println(applePayDomainAssociation);
return null;
}
return next();
Expand Down

0 comments on commit c06c42d

Please sign in to comment.