Closed aletorrado closed 10 years ago
Is this backward compatible with Express 3? If not, package.json
needs to be updated, or there needs to be some version checking built into node-static-asset.
Thoughts?
Also, by the way, thank you for the PR. I really appreciate it!
I think it's not. I haven't touched package.json
because express isn't an explicit dependency.
@aletorrado - Can you change to something like return (res.sendStatus || res.send)(304);
to ensure backward compatibility?
Thanks!
Great. Thank you.
No problem. Thanks for the suggestion to migrate to Express 4 API. I prefer the 4.x res.sendStatus
anyway... a little more explicit IMHO.
res.send(status) is now deprecated on express. I've replaced it with the recommended res.sendStatus(status).