Skip to content

Commit

Permalink
Merge pull request #19 from blacklizardsoft/add-put-delete-requests
Browse files Browse the repository at this point in the history
Add support for PUT and DELETE HTTP methods
  • Loading branch information
tshemsedinov committed Dec 27, 2013
2 parents 9ef0237 + 63b0df2 commit 92dca69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/impress.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 92dca69

Please sign in to comment.