Преглед на файлове

resource_script_demo needs '/' in the pattern

bel преди 11 години
родител
ревизия
77323dc4af
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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