Comparing version 2.5.0 to 2.5.1
@@ -5,2 +5,8 @@ # restify Changelog | ||
## 2.5.1 | ||
- GH-401 RegEx routes stomp one another, resulting in 404 | ||
- GH-389 StringClient should handle garbage servers that send neither | ||
`Content-Length` nor `Transfer-Encoding: chunked` headers. | ||
## 2.5.0 | ||
@@ -7,0 +13,0 @@ |
@@ -138,8 +138,2 @@ // Copyright 2012 Mark Cavage, Inc. All rights reserved. | ||
if (res) { | ||
if (res.headers['transfer-encoding'] !== 'chunked' && | ||
!res.headers['content-length']) { | ||
callback(err, req, res); | ||
return; | ||
} | ||
function done() { | ||
@@ -146,0 +140,0 @@ res.log.trace('body received:\n%s', body); |
@@ -77,3 +77,3 @@ // Copyright 2012 Mark Cavage, Inc. All rights reserved. | ||
remotePort: req.connection.remotePort, | ||
req_id: req.id, | ||
req_id: req.getId(), | ||
req: req, | ||
@@ -80,0 +80,0 @@ res: res, |
@@ -14,2 +14,3 @@ // Copyright 2012 Mark Cavage, Inc. All rights reserved. | ||
var spdy = require('spdy'); | ||
var uuid = require('node-uuid'); | ||
@@ -380,5 +381,11 @@ var dtrace = require('./dtrace'); | ||
} | ||
opts.name = opts.name.replace(/\W/g, '').toLowerCase(); | ||
if (this.router.mounts[opts.name]) // GH-401 | ||
opts.name += uuid.v4().substr(0, 7); | ||
} else { | ||
opts.name = opts.name.replace(/\W/g, '').toLowerCase(); | ||
} | ||
opts.name = opts.name.replace(/\W/g, '').toLowerCase(); | ||
if (!(route = this.router.mount(opts))) | ||
@@ -385,0 +392,0 @@ return (false); |
@@ -32,3 +32,3 @@ { | ||
"description": "REST framework", | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"repository": { | ||
@@ -35,0 +35,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
184843