aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
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'