aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormetoro <[email protected]>2014-03-12 09:58:33 +0100
committermetoro <[email protected]>2014-03-12 09:58:33 +0100
commit5daf37eaba8eb763458771210e7426db3791d4a3 (patch)
treeb41a7d89d820c29e549abeead32f0b5bb006adf3
parenta9c1efa08de735a2cf8da755ad21f2f25a2e5706 (diff)
downloadcoinos-server-5daf37eaba8eb763458771210e7426db3791d4a3.tar.gz
coinos-server-5daf37eaba8eb763458771210e7426db3791d4a3.zip
Try to fix json output headers
-rw-r--r--routes/users.coffee2
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()
)