diff -r 72a2eec4204a -r 1777271a1ec0 net/http.lua --- a/net/http.lua Sat Jul 07 03:42:31 2012 +0200 +++ b/net/http.lua Sat Jul 07 23:22:15 2012 +0200 @@ -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