You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First off, I understand that the initial target of the this module was for node, and not the browser. With that said, I am using this module with Browserify on the web.
When Restler handles the response in _responseHandler, response.setEncoding is called. For reasons unknown to me, that particular method is not defined when on the web. I don't know what side effects could be caused by not calling it either.
I will be creating a pull request shortly that checks to see if that method is defined before calling it to potentially resolve this issue.
The text was updated successfully, but these errors were encountered:
@easternbloc http-browserify seems like that's the correct place to fix the issue... But it seems like we could get a very simple fix in restler to address this issue while we wait for the PR that does not seem to be going anywhere.
First off, I understand that the initial target of the this module was for node, and not the browser. With that said, I am using this module with Browserify on the web.
When Restler handles the response in
_responseHandler
,response.setEncoding
is called. For reasons unknown to me, that particular method is not defined when on the web. I don't know what side effects could be caused by not calling it either.I will be creating a pull request shortly that checks to see if that method is defined before calling it to potentially resolve this issue.
The text was updated successfully, but these errors were encountered: