You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Cameron Ring (JIRA)" <ji...@apache.org> on 2014/11/20 09:56:33 UTC
[jira] [Created] (THRIFT-2844) Nodejs support when running under
Browserify
Cameron Ring created THRIFT-2844:
------------------------------------
Summary: Nodejs support when running under Browserify
Key: THRIFT-2844
URL: https://issues.apache.org/jira/browse/THRIFT-2844
Project: Thrift
Issue Type: Bug
Components: Node.js - Library
Affects Versions: 0.9.2
Environment: Browserify
Reporter: Cameron Ring
When running under Browserify, the NodeJS binding fails when using the HTTP transport. This happens because Browserify is returning the response as a Uint8Array rather than a Buffer. The fix is straightforward: in response.on('data', wrap any Uint8Arrays in a buffer so the types are as expected.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)