Allow to serve static files as response to POST#203
Allow to serve static files as response to POST#203yura-pakhuchiy wants to merge 1 commit intojfhbrook:masterfrom
Conversation
Sometimes it is useful to serve static answers to POST requests. However ecstatic rejects all requests except GET or HEAD. This small patch fixes it.
|
I, uh, why would you want this? POSTs should do something. At the least, this behavior seems technically incorrect. |
|
To test application which uses HTTP API. I can create directory which contains replies to requests and point application to it. Without this patch I can test only GET requests, however POST request are very common as well. While I agree that requests that can change something should use POST, there is no requirement for every POST request to change something. Consider POST request with wrong access token, server should just ignore it. BTW, PHP web server ( |
Sometimes it is useful to serve static answers to POST requests. However ecstatic rejects all requests except GET or HEAD. This small patch fixes it.