Added new filter to code.c, to convert between line conventions.

This commit is contained in:
Diego Nehab 2004-01-18 08:59:21 +00:00
parent 50ce143725
commit 3ea9271126
4 changed files with 14 additions and 5 deletions

View file

@ -419,7 +419,7 @@ end
-----------------------------------------------------------------------------
local function authorize(reqt, parsed, respt)
reqt.headers["authorization"] = "Basic " ..
socket.code.base64.encode(parsed.user .. ":" .. parsed.password)
(socket.code.b64(parsed.user .. ":" .. parsed.password))
local autht = {
nredirects = reqt.nredirects,
method = reqt.method,