expressjs/serve-index

POST requests are rejected with 405

Closed this issue · 4 comments

If serve-index gets a POST request (or any request other than GET, HEAD, & OPTIONS) it responds to it with a 405 Method Not Allowed. It should call next() so the next middleware can handle the request.

I know I can handle the POST request before it gets to the serve-index middleware but that is not feasible with our setup right now.

Ah, yes, indeed. I think that is what PR #61 is trying to fix, but it is very incomplete and the docs in it don't correctly describe what the option is doing. Do you want to take up the torch on that PR?

Closing due to no response.

@ledlamp take a look at this https://stackoverflow.com/questions/34494634/http-post-express-server-returns-405-error-if-it-enables-serve-index/64137350#64137350

oh hmm that's a good idea but the thing I was working on is loong gone now 😆

I think this issue should be left open though; just because nobody cares to fix it right now doesn't mean it's not an issue 🙄