Software /
code /
prosody
Changeset
4976:0875c9208580
Merge Zash with Zash for Zash
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 22 Jul 2012 18:46:49 +0100 |
parents | 4975:6f689c155186 (current diff) 4972:1777271a1ec0 (diff) |
children | 4977:7006ccbf22a9 |
files | |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/net/http.lua Wed Jul 18 21:18:17 2012 +0200 +++ b/net/http.lua Sun Jul 22 18:46:49 2012 +0100 @@ -7,7 +7,7 @@ -- local socket = require "socket" -local mime = require "mime" +local b64 = require "util.encodings".base64.encode; local url = require "socket.url" local httpstream_new = require "util.httpstream".new; @@ -154,7 +154,7 @@ }; if req.userinfo then - headers["Authorization"] = "Basic "..mime.b64(req.userinfo); + headers["Authorization"] = "Basic "..b64(req.userinfo); end if ex then