danwrong / restler

REST client library for node.js
MIT License
1.99k stars 391 forks source link

Don't call response.setEncoding when it isn't defined #162

Closed shaneneuerburg closed 9 years ago

shaneneuerburg commented 10 years ago

This pull request checks to see if setEncoding is defined on response. If it isn't, it won't attempt to call it.

This would fix #161. Comments or concerns welcome.

jadbaz commented 9 years ago

Why has this still not been merged with restler? Still can't use restler with webpack!!! Adding that line made it work.