aboutsummaryrefslogtreecommitdiff
path: root/etc/check-links.lua
diff options
context:
space:
mode:
Diffstat (limited to 'etc/check-links.lua')
-rw-r--r--etc/check-links.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/check-links.lua b/etc/check-links.lua
index 725cd2a..a989f8c 100644
--- a/etc/check-links.lua
+++ b/etc/check-links.lua
@@ -37,7 +37,7 @@ function getstatus(link)
37 handler:start(function() 37 handler:start(function()
38 local r, c, h, s = http.request{ 38 local r, c, h, s = http.request{
39 method = "HEAD", 39 method = "HEAD",
40 url = link, 40 url = link,
41 create = handler.tcp 41 create = handler.tcp
42 } 42 }
43 if r and c == 200 then io.write('\t', link, '\n') 43 if r and c == 200 then io.write('\t', link, '\n')
@@ -107,6 +107,6 @@ for _, address in ipairs(arg) do
107 checklinks(url.absolute("file:", address)) 107 checklinks(url.absolute("file:", address))
108end 108end
109 109
110while nthreads > 0 do 110while nthreads > 0 do
111 handler:step() 111 handler:step()
112end 112end