# HG changeset patch # User bsw # Date 1319481169 -7200 # Node ID 77b761569ae2b98440a9899460f7d5a4bed0fbd4 # Parent e69609a3c98a76f0409eb0441c6c74f646e2a6d3 Removed workaround not needed anymore with current node-postgres. diff -r e69609a3c98a -r 77b761569ae2 lfapi/main.js --- a/lfapi/main.js Thu Oct 20 13:55:29 2011 +0200 +++ b/lfapi/main.js Mon Oct 24 20:32:49 2011 +0200 @@ -78,8 +78,6 @@ db.query(conn, req, res, query, function(result, conn) { db.query(conn, req, res, command, function (result, conn) { - if (conn && typeof(conn) != 'string') conn.drain(); - if (mode == 'json') { if (! object) object = {}; } else if (mode == 'html') { @@ -101,7 +99,7 @@ http_status, { 'Content-Type': content_type, - //'Content-Length': body.length + 'Content-Length': body.length } ); res.end(body);