apache/thrift — pull request #251 by cameronr (2014-11-02 09:36:20+00:00)
Title: add support for running under Browserify

Add option for setting the desired XHR responseType.

When running the http client under Browserify, the data provided in the callback will be a string or a Uint8Array ArrayBuffer. Wrap both of those in a Buffer so ``data[i].copy`` can succeed.