Comparing version 0.5.2 to 0.5.3
@@ -140,2 +140,5 @@ /** | ||
opt.headers = opt.headers || {}; | ||
if (!opt.headers.HOST && !opt.headers.host) { | ||
opt.headers.HOST = opt.host + ':' + opt.port; | ||
} | ||
opt.path = url.resolve(uri, path); | ||
@@ -157,11 +160,11 @@ var proxyUri = url.parse(proxy); | ||
// or, just use zlib.createUnzip() to handle both cases | ||
case 'gzip': | ||
res.pipe(zlib.createGunzip()).pipe(response); | ||
break; | ||
case 'deflate': | ||
res.pipe(zlib.createInflate()).pipe(response); | ||
break; | ||
default: | ||
res.pipe(response); | ||
break; | ||
case 'gzip': | ||
res.pipe(zlib.createGunzip()).pipe(response); | ||
break; | ||
case 'deflate': | ||
res.pipe(zlib.createInflate()).pipe(response); | ||
break; | ||
default: | ||
res.pipe(response); | ||
break; | ||
} | ||
@@ -168,0 +171,0 @@ callback && callback(response); |
{ | ||
"name": "node-ral", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"description": "a rpc client for node", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
323397
9431