diff --git a/lib/ecstatic.js b/lib/ecstatic.js index 8849c6c..cfaaaf4 100644 --- a/lib/ecstatic.js +++ b/lib/ecstatic.js @@ -221,7 +221,7 @@ module.exports = function createMiddleware(_dir, _options) { return; } - if (req.method && (req.method !== 'GET' && req.method !== 'HEAD')) { + if (req.method && (req.method !== 'GET' && req.method !== 'HEAD' && req.method !== 'POST')) { status[405](res, next); return; }