aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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()
)