paymentsds / mpesa-js-sdk

A JavaScript library aiming to help developers integrating their products with M-Pesa Platform
Apache License 2.0
62 stars 27 forks source link

Fixing invalid header char bug in response #62

Closed ltsaiete closed 2 years ago

ltsaiete commented 2 years ago

I fixed the bug that was preventing the SDK from working in newer versions of node by responding invalid header char. To fix this I added insecureHTTPParser: true to the request options.