Forráskód Böngészése

resource_script_demo needs '/' in the pattern

bel 11 éve
szülő
commit
77323dc4af
1 módosított fájl, 1 hozzáadás és 1 törlés
  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