Software /
code /
prosody
Comparison
net/http.lua @ 738:cf70342985df
net.http: custom_headers -> headers
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 16 Jan 2009 23:34:45 +0000 |
parent | 720:8f22e9fb2291 |
child | 739:1def06cd9311 |
comparison
equal
deleted
inserted
replaced
737:ade262a8da7f | 738:cf70342985df |
---|---|
121 if req.userinfo then | 121 if req.userinfo then |
122 default_headers["Authorization"] = "Basic "..mime.b64(req.userinfo); | 122 default_headers["Authorization"] = "Basic "..mime.b64(req.userinfo); |
123 end | 123 end |
124 | 124 |
125 if ex then | 125 if ex then |
126 custom_headers = ex.custom_headers; | 126 custom_headers = ex.headers; |
127 req.onlystatus = ex.onlystatus; | 127 req.onlystatus = ex.onlystatus; |
128 body = ex.body; | 128 body = ex.body; |
129 if body then | 129 if body then |
130 req.method = "POST "; | 130 req.method = "POST "; |
131 default_headers["Content-Length"] = tostring(#body); | 131 default_headers["Content-Length"] = tostring(#body); |