Comparing version 1.13.13 to 1.14.0
## History | ||
- v1.14.0 November 23, 2012 | ||
- `balUtilPaths` changes: | ||
- `readPath` will now follow url redirects | ||
- v1.13.13 October 26, 2012 | ||
@@ -4,0 +8,0 @@ - `balUtilPaths` changes: |
@@ -685,3 +685,9 @@ // Generated by CoffeeScript 1.3.3 | ||
return res.on('end', function() { | ||
return next(null, data); | ||
var locationHeader, _ref4; | ||
locationHeader = ((_ref4 = res.headers) != null ? _ref4.location : void 0) || null; | ||
if (locationHeader && locationHeader !== requestOptions.href) { | ||
return balUtilPaths.readPath(locationHeader, next); | ||
} else { | ||
return next(null, data); | ||
} | ||
}); | ||
@@ -688,0 +694,0 @@ }).on('error', function(err) { |
{ | ||
"name": "bal-util", | ||
"version": "1.13.13", | ||
"version": "1.14.0", | ||
"description": "Common utility functions for Node.js used and maintained by Benjamin Lupton", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/balupton/bal-util", |
99583
2375