lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


-- Case 2

local logformat = '$Referer,$Accept,$Connection'

log:write((string.gsub('$Referer;$Accept-Encoding;$Connection', '$([%w_-]+)', request.headers)))
 > http://localhost/index.html;gzip,deflate;keep-alive

Duh! Ignore the 'local logformat = ...' line :)

--rb