From 80e691e3d6bce5af2dfcd296c8e926d10f940d70 Mon Sep 17 00:00:00 2001 From: Dominic Barnes Date: Sun, 26 Feb 2012 16:40:23 -0600 Subject: [PATCH] if change stream, leave the default encoding --- lib/client.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/client.js b/lib/client.js index 60ebff5..8d39f14 100755 --- a/lib/client.js +++ b/lib/client.js @@ -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));