aboutsummaryrefslogtreecommitdiffstats
path: root/net/http.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2012-07-07 23:22:15 +0200
committerKim Alvefur <zash@zash.se>2012-07-07 23:22:15 +0200
commit7b894f50d3a5156fa6f5d5b537d18ab334b78a98 (patch)
treecb5a154d5c92bcebeddec7804641d0a8b672f3b3 /net/http.lua
parent7180665b081fef6f162e5b06564ebf515d2515f7 (diff)
downloadprosody-7b894f50d3a5156fa6f5d5b537d18ab334b78a98.tar.gz
prosody-7b894f50d3a5156fa6f5d5b537d18ab334b78a98.zip
net.http: Use base64 from util.encodings instead of luasocket
Diffstat (limited to 'net/http.lua')
-rw-r--r--net/http.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/http.lua b/net/http.lua
index f2061e00..6498f8fa 100644
--- a/net/http.lua
+++ b/net/http.lua
@@ -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 @@ function request(u, ex, callback)
};
if req.userinfo then
- headers["Authorization"] = "Basic "..mime.b64(req.userinfo);
+ headers["Authorization"] = "Basic "..b64(req.userinfo);
end
if ex then