From 086e2f65725e02154bebe8f9281b68a93b5b7de7 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Mon, 11 Aug 2014 18:37:48 -0400 Subject: [PATCH] paypro: fix accept header for bitpay.com. --- js/models/core/Wallet.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/js/models/core/Wallet.js b/js/models/core/Wallet.js index 804742fc9..b8fa3ec13 100644 --- a/js/models/core/Wallet.js +++ b/js/models/core/Wallet.js @@ -804,8 +804,7 @@ Wallet.prototype.createPaymentTx = function(options, cb) { method: options.method || 'POST', url: options.uri, headers: { - 'Accept': PayPro.PAYMENT_REQUEST_CONTENT_TYPE - + ', ' + PayPro.PAYMENT_ACK_CONTENT_TYPE, + 'Accept': PayPro.PAYMENT_REQUEST_CONTENT_TYPE, 'Content-Type': 'application/octet-stream' // XHR does not allow this: // 'Content-Length': '0' @@ -1046,8 +1045,7 @@ Wallet.prototype.sendPaymentTx = function(ntxid, options, cb) { url: txp.merchant.pr.pd.payment_url, headers: { // BIP-71 - 'Accept': PayPro.PAYMENT_REQUEST_CONTENT_TYPE - + ', ' + PayPro.PAYMENT_ACK_CONTENT_TYPE, + 'Accept': PayPro.PAYMENT_ACK_CONTENT_TYPE, 'Content-Type': PayPro.PAYMENT_CONTENT_TYPE // XHR does not allow these: // 'Content-Length': (pay.byteLength || pay.length) + '',