aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2019-10-08 12:46:16 +0000
committers-ol <s-ol@users.noreply.github.com>2019-10-08 12:46:16 +0000
commit7f261ca5fe336d3d3a0ab9147fd7a5feecdaf36c (patch)
tree38ef477665eba7cd27c17de2c8244ca6ce158c6c /build
parentfix conversion pattern escapes (diff)
downloadmmm-7f261ca5fe336d3d3a0ab9147fd7a5feecdaf36c.tar.gz
mmm-7f261ca5fe336d3d3a0ab9147fd7a5feecdaf36c.zip
change static path to work with static content
Diffstat (limited to 'build')
-rw-r--r--build/server.moon4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/server.moon b/build/server.moon
index 4749736..a9b8431 100644
--- a/build/server.moon
+++ b/build/server.moon
@@ -77,7 +77,7 @@ class Server
501, "not implemented"
handle_static: (method, path, stream) =>
- path = path\match '^/%?static/(.*)'
+ path = path\match '^/%.static/(.*)'
return unless path
respond = (code, type, body) ->
@@ -93,7 +93,7 @@ class Server
respond '405', 'text/plain', "can only GET/HEAD static resources"
return true
- if path\match '^%.' or path\match '^%~'
+ if path\match '%.%.' or path\match '^%~'
respond '404', 'text/plain', "not found"
return