Commit 1b165f74 authored by François Perrad's avatar François Perrad

fix debug when no header

parent 574da2d1
......@@ -123,7 +123,7 @@ local function request (req)
if spore.debug then
spore.debug:write(req.method, " ", req.url, "\n")
for k, v in pairs(req.headers) do
for k, v in pairs(req.headers or {}) do
spore.debug:write(k, ": ", v, "\n")
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment