* libs/httpd: Removed a debug function
authorSteven Barth <steven@midlink.org>
Thu, 26 Jun 2008 19:42:38 +0000 (19:42 +0000)
committerSteven Barth <steven@midlink.org>
Thu, 26 Jun 2008 19:42:38 +0000 (19:42 +0000)
libs/httpd/luasrc/httpd.lua

index af5be22399c917c7260c64d26fbc3c738a5201e2..201ece616bdebaa96ee901a34a5a6f2385ee5b84 100644 (file)
@@ -55,18 +55,6 @@ function corecv(socket, ...)
        end
 end
 
-function h(sock)
-       local sink = socket.sink("close-when-done", sock)
-       local f = ltn12.source.file(io.open("/home/steven/workspace/ffluci/host/www/luci-static/openwrt.org/cascade.css"))
-       local s = luci.fs.stat("/home/steven/workspace/ffluci/host/www/luci-static/openwrt.org/cascade.css", "size")
-       sink("HTTP/1.1 200 OK\r\nContent-Length: " ..s.."\r\nConnection: close\r\n\r\n")
-       repeat
-               coroutine.yield()
-               eof = not ltn12.pump.step(f, sink)
-       until eof
-end
-
-
 function register(socket, s_clhandler, s_errhandler)
        table.insert(reading, socket)
        clhandler[socket] = s_clhandler