Software /
code /
prosody
Diff
net/http.lua @ 4977:7006ccbf22a9
Merge with Zash
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 22 Jul 2012 18:47:40 +0100 |
parent | 4963:54e2c83af127 |
parent | 4972:1777271a1ec0 |
child | 5353:8c3f28f5c1c1 |
line wrap: on
line diff
--- a/net/http.lua Sun Jul 22 18:00:59 2012 +0100 +++ b/net/http.lua Sun Jul 22 18:47:40 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