context.status is always 404
ConnorDY opened this issue · comments
Connor commented
Even when koa-static
successfully serves a file, my custom logging middleware that runs afterwards shows that context.status
is 404
.
Leo commented
Is the problem urgent? I found a solution, at least why it didn't work for me
jongleberry commented
this is most likely due to the order of your middleware. make sure your logging middleware is first.
Imed Jaberi commented
@ConnorDY, is this problem still yet ?! if yes, please can you provide a simple example to be able to help you!
Imed Jaberi commented
@ConnorDY, I will close this issue feel free to re-open it!