Explorar o código

resource_script_demo needs '/' in the pattern

bel %!s(int64=11) %!d(string=hai) anos
pai
achega
77323dc4af
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      test/resource_script_demo.lua

+ 1 - 1
test/resource_script_demo.lua

@@ -22,7 +22,7 @@ if (not mg.request_info.uri:find(scriptUri)) or (not resourcedir) or (not attr)
     mg.write("</body>\r\n</html>\r\n")
     return
 end
-subresource = mg.request_info.uri:match(scriptUri .. "(.*)")
+subresource = mg.request_info.uri:match(scriptUri .. "/(.*)")
 
 if not subresource then
     if method=="GET" then