paypro: remove useless header from http request.

This commit is contained in:
Christopher Jeffrey 2014-08-11 18:39:04 -04:00 committed by Manuel Araoz
parent 61f20605f5
commit 08f1a49259
1 changed files with 1 additions and 4 deletions

View File

@ -804,10 +804,7 @@ Wallet.prototype.createPaymentTx = function(options, cb) {
method: options.method || 'POST',
url: options.uri,
headers: {
'Accept': PayPro.PAYMENT_REQUEST_CONTENT_TYPE,
'Content-Type': 'application/octet-stream'
// XHR does not allow this:
// 'Content-Length': '0'
'Accept': PayPro.PAYMENT_REQUEST_CONTENT_TYPE
},
responseType: 'arraybuffer'
})