diff options
author | Steven Barth <steven@midlink.org> | 2008-06-26 19:42:38 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-06-26 19:42:38 +0000 |
commit | 378ef2da569fc684e98f3d4cd9e4c160286ba423 (patch) | |
tree | 8898d428c498e0a713ddc48f1809258d2b69d85a /libs/httpd/luasrc/httpd.lua | |
parent | dc583e0d3ff317ad5233a7b1b7947581ce5c8f88 (diff) |
* libs/httpd: Removed a debug function
Diffstat (limited to 'libs/httpd/luasrc/httpd.lua')
-rw-r--r-- | libs/httpd/luasrc/httpd.lua | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/libs/httpd/luasrc/httpd.lua b/libs/httpd/luasrc/httpd.lua index af5be2239..201ece616 100644 --- a/libs/httpd/luasrc/httpd.lua +++ b/libs/httpd/luasrc/httpd.lua @@ -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 |