lfapi
changeset 4:77b761569ae2
Removed workaround not needed anymore with current node-postgres.
author | bsw |
---|---|
date | Mon Oct 24 20:32:49 2011 +0200 (2011-10-24) |
parents | e69609a3c98a |
children | ef8aff2e0f67 |
files | lfapi/main.js |
line diff
1.1 --- a/lfapi/main.js Thu Oct 20 13:55:29 2011 +0200 1.2 +++ b/lfapi/main.js Mon Oct 24 20:32:49 2011 +0200 1.3 @@ -78,8 +78,6 @@ 1.4 db.query(conn, req, res, query, function(result, conn) { 1.5 db.query(conn, req, res, command, function (result, conn) { 1.6 1.7 - if (conn && typeof(conn) != 'string') conn.drain(); 1.8 - 1.9 if (mode == 'json') { 1.10 if (! object) object = {}; 1.11 } else if (mode == 'html') { 1.12 @@ -101,7 +99,7 @@ 1.13 http_status, 1.14 { 1.15 'Content-Type': content_type, 1.16 - //'Content-Length': body.length 1.17 + 'Content-Length': body.length 1.18 } 1.19 ); 1.20 res.end(body);