added async put for tokyo

This commit is contained in:
Philipp Borgers 2011-01-19 19:48:54 +01:00
parent 6ddb48c212
commit a7b783fcab

View File

@ -58,6 +58,12 @@ function render(task, callback) {
//TODO do async
hdb.put(task.url, JSON.stringify(temp));
//hdb.put(url, data.toString('base64'));
hdb.putAsync(task.url, JSON.stringify(temp), function(err) {
if(err) {
console.log(err);
}
});
}
else {
task.res.writeHead(404, {'Content-Type': 'text/plain'});