Skip to content

response.setEncoding missing when using Browserify #161

Closed
@shaneneuerburg

Description

@shaneneuerburg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions