koajs / static

Static file server middleware

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

context.status is always 404

ConnorDY opened this issue · comments

Even when koa-static successfully serves a file, my custom logging middleware that runs afterwards shows that context.status is 404.

commented

Is the problem urgent? I found a solution, at least why it didn't work for me

this is most likely due to the order of your middleware. make sure your logging middleware is first.

@ConnorDY, is this problem still yet ?! if yes, please can you provide a simple example to be able to help you!

@ConnorDY, I will close this issue feel free to re-open it!