Be more verbose with ip debug output

This commit is contained in:
James Allen 2014-06-25 11:06:04 +01:00
parent 5aa7daa951
commit 341570d85d

View file

@ -199,7 +199,11 @@ module.exports = class Router
languages: []
app.get "/ip", (req, res, next) ->
res.send("ShareLaTeX sees your IP as: #{req.ip}")
res.send({
ip: req.ip
ips: req.ips
headers: req.headers
})
app.get '/oops-express', (req, res, next) -> next(new Error("Test error"))
app.get '/oops-internal', (req, res, next) -> throw new Error("Test error")