1
0
mirror of https://github.com/graygnuorg/pound.git synced 2026-10-23 22:28:53 +03:00
Files
pound/doc/wwwauthlua.texi
Sergey Poznyakoff 417f9c4fe6 Document changes.
* NEWS: Update.
* configure.ac: Version 4.20.90.
Use silent rules by default.
* doc/wwwauthlua.texi: New file.
* doc/Makefile.am: Add new sources.
* doc/pound.texi: New section: Resend.
Document http.resend, http.resendcount, and http.service variables.
* src/pndlua.c (http.resendcount): New variable.
2026-02-22 14:30:23 +02:00

26 lines
427 B
Plaintext

local _M = @{@}
local function dequote(s)
local m = s:match('^"(.*)"$')
if m then
return m
else
return s
end
end
function _M.parse(h)
local i, j = h:find('%s+')
if i == nil then
return nil
end
local scheme = h:sub(1, i-1)
local params = @{@}
for k, v in (h .. ','):gmatch("(%w+)=(.-),") do
params[k:lower()] = dequote(v)
end
return scheme, params
end
return _M