diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/http.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http.lua b/src/http.lua index 2fc9e87..f51da25 100644 --- a/src/http.lua +++ b/src/http.lua | |||
@@ -419,7 +419,7 @@ end | |||
419 | ----------------------------------------------------------------------------- | 419 | ----------------------------------------------------------------------------- |
420 | local function authorize(reqt, parsed, respt) | 420 | local function authorize(reqt, parsed, respt) |
421 | reqt.headers["authorization"] = "Basic " .. | 421 | reqt.headers["authorization"] = "Basic " .. |
422 | socket.code.base64.encode(parsed.user .. ":" .. parsed.password) | 422 | (socket.code.b64(parsed.user .. ":" .. parsed.password)) |
423 | local autht = { | 423 | local autht = { |
424 | nredirects = reqt.nredirects, | 424 | nredirects = reqt.nredirects, |
425 | method = reqt.method, | 425 | method = reqt.method, |