Browse Source

resource_script_demo needs '/' in the pattern

bel 11 years ago
parent
commit
77323dc4af
1 changed files with 1 additions and 1 deletions
  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