likeastore/maintenance — pull request #4 by georgeh (2014-06-20 21:18:47+00:00)
Title: Stop maintenance from calling next() when enabled

When maintenance is enabled, it was calling the next() middleware after returning a response. This would cause other middlewares to crash express because they are trying to manipulate a response that's already been sent.