microsoft / typed-rest-client

Node Rest and Http Clients with typings for use with TypeScript
Other
675 stars 118 forks source link

Adding and checking for supported encodings in util function to avoid exception #205

Closed issacnitin closed 4 years ago

issacnitin commented 4 years ago

PR to fix Issue https://github.com/microsoft/typed-rest-client/issues/203

damccorm commented 4 years ago

@isaacnitin - where is this list of supported encodings coming from?

issacnitin commented 4 years ago

@damccorm These are the officially supported encodings of nodejs

stephenmichaelf commented 4 years ago

We should add tests for this.

issacnitin commented 4 years ago

@stephenmichaelf I've added Unit tests and renamed the variable.

damccorm commented 4 years ago

This has been released - https://www.npmjs.com/package/typed-rest-client