diff options
| author | metoro <[email protected]> | 2014-03-12 09:58:33 +0100 |
|---|---|---|
| committer | metoro <[email protected]> | 2014-03-12 09:58:33 +0100 |
| commit | 5daf37eaba8eb763458771210e7426db3791d4a3 (patch) | |
| tree | b41a7d89d820c29e549abeead32f0b5bb006adf3 | |
| parent | a9c1efa08de735a2cf8da755ad21f2f25a2e5706 (diff) | |
| download | coinos-server-5daf37eaba8eb763458771210e7426db3791d4a3.tar.gz coinos-server-5daf37eaba8eb763458771210e7426db3791d4a3.zip | |
Try to fix json output headers
| -rw-r--r-- | routes/users.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/users.coffee b/routes/users.coffee index fc6bde38..73c78234 100644 --- a/routes/users.coffee +++ b/routes/users.coffee @@ -11,7 +11,7 @@ module.exports = (sessions) -> json: (req, res) -> db.hgetall("user:"+req.params.user, (err, obj) -> delete obj['password'] - res.write(200, {"Content-Type": "application/json"}); + res.writeHead(200, {"Content-Type": "application/json"}); res.write(JSON.stringify(obj)) res.end() ) |
