summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/HttpServ.cc4
-rw-r--r--lib/LuaHttp.cc10
2 files changed, 12 insertions, 2 deletions
diff --git a/lib/HttpServ.cc b/lib/HttpServ.cc
index 6e369fa..6dee7ad 100644
--- a/lib/HttpServ.cc
+++ b/lib/HttpServ.cc
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: HttpServ.cc,v 1.48 2007-06-02 11:29:30 pixel Exp $ */
+/* $Id: HttpServ.cc,v 1.49 2007-06-04 14:24:18 pixel Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -228,6 +228,8 @@ int ProcessRequest::Do() throw(GeneralException) {
request.vars = Vars;
request.headers = Heads;
request.uri = Uri;
+ request.login = login;
+ request.password = password;
d->Do(request, &response);
a = response.BuildResponse(&s);
} else {
diff --git a/lib/LuaHttp.cc b/lib/LuaHttp.cc
index 92af759..5d2cbb2 100644
--- a/lib/LuaHttp.cc
+++ b/lib/LuaHttp.cc
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: LuaHttp.cc,v 1.12 2007-05-30 22:36:31 pixel Exp $ */
+/* $Id: LuaHttp.cc,v 1.13 2007-06-04 14:24:18 pixel Exp $ */
#include "Domain.h"
#include "LuaHttp.h"
@@ -276,6 +276,14 @@ class LuaDomain : public Domain {
L->push(req.uri);
L->settable();
+ L->push("login");
+ L->push(req.login);
+ L->settable();
+
+ L->push("password");
+ L->push(req.password);
+ L->settable();
+
LuaHttpResponse r(res);
r.push(L);