summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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") {