Unable to use some response function #34
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm trying to migrate my app to serve by greenlock-express.js recently, but I get some errors that never happened in original express app:
res.status(403)
Error:
TypeError: res.status is not a function
Resolved by updating the code to
res.statusCode = 403
.res.json({ ... })
Error:
TypeError: res.json is not a function
Resolved by updating the code to:
Here's my greenlock-express app:
Did I missed anything?
It's kind of inconvenient that I can't use the functions above and it makes the code longer.
you still need to require
express
and create an app.greenlock only handles the security-related bits, nothing else.