From 63b0df27de13ee2d1ee15b87b7a4e8909bcf3f0c Mon Sep 17 00:00:00 2001 From: m03geek Date: Fri, 27 Dec 2013 12:16:21 +0200 Subject: [PATCH] Add support for PUT and DELETE HTTP methods --- lib/impress.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/impress.js b/lib/impress.js index 2adbfc160..f7c3d93db 100644 --- a/lib/impress.js +++ b/lib/impress.js @@ -502,7 +502,7 @@ } if (host.process) { // Read POST parameters - if (req.method === "POST") { + if (req.method === "POST" || req.method === "PUT" || req.method === "DELETE") { var contentType = req.headers['content-type']; if (contentType && contentType.startsWith('multipart')) { var form = new impress.multiparty.Form();