aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-02-04 15:31:35 +0000
committers-ol <s-ol@users.noreply.github.com>2020-02-04 15:31:35 +0000
commitc186f9101182c4ac1314e745ee33ccef32702ddd (patch)
tree454e12c37e625c44447ae829242ca47e918c3266 /build
parentfix blog (diff)
downloadmmm-c186f9101182c4ac1314e745ee33ccef32702ddd.tar.gz
mmm-c186f9101182c4ac1314e745ee33ccef32702ddd.zip
small fixes
Diffstat (limited to 'build')
-rw-r--r--build/server.moon2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/server.moon b/build/server.moon
index 7c0ff46..1bf2228 100644
--- a/build/server.moon
+++ b/build/server.moon
@@ -174,7 +174,7 @@ class Server
path_facet or= path
path, facet = path_facet\match '(.*)/([^/]*)'
- facet = if facet == '' and type == '' and method ~= 'GET' and method ~= 'HEAD'
+ facet = if facet == '' and (not type or type == '') and method ~= 'GET' and method ~= 'HEAD'
nil
else
type or= 'text/html+interactive'