summaryrefslogtreecommitdiff
path: root/lib/LuaHttp.cc
diff options
context:
space:
mode:
authorpixel <pixel>2007-10-12 13:04:38 +0000
committerpixel <pixel>2007-10-12 13:04:38 +0000
commitcb1744c5ddd08593ec2e5370a4d6a9c625fda794 (patch)
tree7ef1f62a608cac71c4f072528eec6013f0ad054b /lib/LuaHttp.cc
parent926d091d36bead33fcd18c1b2d1552a047070a25 (diff)
Adding the missing (?!!) 'domain' variable.
Diffstat (limited to 'lib/LuaHttp.cc')
-rw-r--r--lib/LuaHttp.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/LuaHttp.cc b/lib/LuaHttp.cc
index 3324dff..375de3e 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.22 2007-09-28 09:23:36 pixel Exp $ */
+/* $Id: LuaHttp.cc,v 1.23 2007-10-12 13:04:38 pixel Exp $ */
#include "Domain.h"
#include "LuaHttp.h"
@@ -203,6 +203,8 @@ int sLua_HttpResponse::HttpResponse_proceed(Lua * L, int n, HttpResponse * res,
L->push(res->mime_type);
} else if (i == "location") {
L->push(res->location);
+ } else if (i == "domain") {
+ L->push(res->domain);
} else if (i == "server_name") {
L->push(res->server_name);
} else if (i == "return_code") {
@@ -227,6 +229,8 @@ int sLua_HttpResponse::HttpResponse_proceed(Lua * L, int n, HttpResponse * res,
res->mime_type = L->tostring(3);
} else if (i == "location") {
res->location = L->tostring(3);
+ } else if (i == "domain") {
+ res->domain = L->tostring(3);
} else if (i == "server_name") {
res->server_name = L->tostring(3);
} else if (i == "return_code") {