danwrong/restler — Issue #56: when using restler to download binary files it corrupts them.
Author: c4milo
Created: 2011-12-29 21:07:36+00:00
State: open

I'm trying to use restler to download binary files and they get corrupted in the reading process. Setting https://github.com/danwrong/restler/blob/master/lib/restler.js#L111 to 'binary' instead of 'utf8' solves the problem but I agree it has to be implemented in a better way in order to handle different encodings.