Skip to content

Commit

Permalink
if change stream, leave the default encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominic Barnes committed Feb 26, 2012
1 parent 8ef7f5c commit 80e691e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/client.js
Expand Up @@ -156,7 +156,9 @@ proto._get = function (url, options, callback) {
this._set_url(url, options);

if (options.stream) {
options.encoding = null;
if (!options.changes) {
options.encoding = null;
}
this._stream(request.get(options), callback, options);
} else {
request.get(options, this._callback(callback, options));
Expand Down

0 comments on commit 80e691e

Please sign in to comment.