fix a bug.

This commit is contained in:
周培公
2013-12-24 15:03:03 +08:00
parent 597853cd6c
commit bccfd7bbbb

View File

@@ -114,10 +114,14 @@ function doRequest(name, index, callback) {
return callback(createError('Response of request to ' + requestUrl + ' is not a valid json', 'EINVRES'));
}
callback(null, {
type: 'alias',
url: body.url
});
var data;
if (body.url) {
data = {
type: 'alias',
url: body.url
};
}
callback(null, data);
}));
if (this._logger) {