aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2019-11-06 13:52:56 +0000
committers-ol <s-ol@users.noreply.github.com>2019-11-06 13:52:56 +0000
commit50ac388d23d4f59013c4499912d1a34bbd86f92d (patch)
tree560e2ad56d6e68ec81595121aaa6e28fb2bbe47e
parentadd ba_log entry 2019-11-01 (diff)
downloadmmm-50ac388d23d4f59013c4499912d1a34bbd86f92d.tar.gz
mmm-50ac388d23d4f59013c4499912d1a34bbd86f92d.zip
fix PUT :<type>
-rw-r--r--build/server.moon2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/server.moon b/build/server.moon
index a2d6c71..b95b396 100644
--- a/build/server.moon
+++ b/build/server.moon
@@ -170,7 +170,7 @@ class Server
path_facet or= path
path, facet = path_facet\match '(.*)/([^/]*)'
- facet = if facet == '' and method ~= 'GET' and method ~= 'HEAD'
+ facet = if facet == '' and type == '' and method ~= 'GET' and method ~= 'HEAD'
nil
else
type or= 'text/html+interactive'