node-rest-client
Advanced tools
Comparing version 0.8.4 to 0.8.6
@@ -313,3 +313,3 @@ var http = require('http'), | ||
if(encoding.indexOf("gzip") >= 0){ | ||
if(encoding !== undefined && encoding.indexOf("gzip") >= 0){ | ||
debug("gunzip"); | ||
@@ -319,3 +319,3 @@ zlib.gunzip(Buffer.concat(buffer),function(er,gunzipped){ | ||
}); | ||
}else if(encoding.indexOf("deflate") >= 0){ | ||
}else if(encoding !== undefined && encoding.indexOf("deflate") >= 0){ | ||
debug("inflate"); | ||
@@ -322,0 +322,0 @@ zlib.inflate(Buffer.concat(buffer),function(er,inflated){ |
@@ -5,3 +5,3 @@ { | ||
"description": "node API REST client", | ||
"version": "0.8.4", | ||
"version": "0.8.6", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type":"git", |
34230