]> git.sesse.net Git - vlc/commitdiff
luahttp: Actually load the base directory
authorEdward Wang <edward.c.wang@compdigitec.com>
Sun, 22 Apr 2012 02:56:56 +0000 (22:56 -0400)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 29 Apr 2012 23:12:54 +0000 (01:12 +0200)
Fix regression introduced in 6a7c37184b40904b2727fed1a0022b036d1a3757 where luahttp does not load the base directory, causing 404s

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
share/lua/intf/http.lua

index 8e44c61baee97c5d09ba6e5b0cae28105191c333..65f28520b84f7d9810392d580f3bbe09521e2f90 100644 (file)
@@ -320,4 +320,5 @@ end
 
 password = vlc.var.inherit(nil,"http-password")
 h = vlc.httpd()
+load_dir( http_dir )
 local a = h:handler("/art",nil,password,callback_art,nil)