Skip to content

Commit

Permalink
Passing the config to JSON.parse() as a string instead of a Buffer.
Browse files Browse the repository at this point in the history
  • Loading branch information
sir-pinecone authored and bdotdub committed Jun 29, 2010
1 parent 10f3a0c commit fb56f72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/hummingbird.js
Expand Up @@ -13,7 +13,7 @@ try {
} catch(e) {
sys.log("File config/app.json not found. Try: `cp config/app.json.sample config/app.json`");
}
var config = JSON.parse(configJSON);
var config = JSON.parse(configJSON.toString());

var Hummingbird = function(db, callback) {
var pixelData = fs.readFileSync(__dirname + "/../images/tracking.gif", 'binary');
Expand Down
2 changes: 1 addition & 1 deletion server.js
Expand Up @@ -13,7 +13,7 @@ try {
} catch(e) {
sys.log("File config/app.json not found. Try: `cp config/app.json.sample config/app.json`");
}
var config = JSON.parse(configJSON);
var config = JSON.parse(configJSON.toString());

db = new mongo.Db('hummingbird', new mongo.Server('localhost', 27017, {}), {});

Expand Down

0 comments on commit fb56f72

Please sign in to comment.