andreialecu / node-apn-http2

Communicate with Apple Push Notification Service via native Node.js v8.8.1+ HTTP2 module (node-apn drop-in)
MIT License
27 stars 10 forks source link

Response body JSON not converted to object (on failure) #4

Closed petercv closed 6 years ago

petercv commented 6 years ago

In the normal node-apn library the (JSON) response body for failed requests is converted to an object, node-apn-http2 returns the response body as a simple string.

petercv commented 6 years ago

See https://github.com/andreialecu/node-apn-http2/pull/5

andreialecu commented 6 years ago

Merged and published to npm as 1.2.0.

Thanks!