caolan/highland — pull request #42 by glenjamin (2014-02-22 20:02:30+00:00)
Title: Handle piping from old-style node streams

As mentioned in http://stackoverflow.com/questions/21954125/the-request-stream-in-highland-is-not-correctly-passed-forward

The request() module uses a sort-of old-style stream.

https://github.com/mikeal/request/blob/11224dd1f02e311afcc11df8a8f0be1d9fb2bf83/request.js#L1310

I traced this down to the following check https://github.com/joyent/node/blob/master/lib/stream.js#L50 - I'm unsure whether this should really be a loud error, will probably report to Node.js core.

I was unsure whether a stream that had been given a different source should be considered writable, but decided to just flag everything as writable and leave it to users to not do anything weird - open to alternative perspectives on that.