projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
874649c
)
net.http: Use base64 from util.encodings instead of luasocket
author
Kim Alvefur
<zash@zash.se>
Sat, 7 Jul 2012 21:22:15 +0000
(23:22 +0200)
committer
Kim Alvefur
<zash@zash.se>
Sat, 7 Jul 2012 21:22:15 +0000
(23:22 +0200)
net/http.lua
patch
|
blob
|
history
diff --git
a/net/http.lua
b/net/http.lua
index f2061e00ebe114db102e0cc9f5dfa0565e01b656..6498f8fad59c3a083d5fc461558c2cf27d44d4a4 100644
(file)
--- 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