summaryrefslogtreecommitdiff
path: root/lib/LuaHttp.cc
diff options
context:
space:
mode:
authorpixel <pixel>2008-01-28 17:30:46 +0000
committerpixel <pixel>2008-01-28 17:30:46 +0000
commitce156c2cda847468bc0bc032013c3e2e772a49ad (patch)
treeb15528285a352c937c1684523a8e67addfadedca /lib/LuaHttp.cc
parentd20d4e4a03b3bcc3649efcc55f2563fe4e878112 (diff)
Adding a shortcut for domains to directly specify a filename to copy.
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 fde40c3..483ef2a 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.25 2008-01-23 17:41:10 pixel Exp $ */
+/* $Id: LuaHttp.cc,v 1.26 2008-01-28 17:30:46 pixel Exp $ */
#include "Domain.h"
#include "LuaHttp.h"
@@ -205,6 +205,8 @@ int sLua_HttpResponse::HttpResponse_proceed(Lua * L, int n, HttpResponse * res,
L->push(res->location);
} else if (i == "domain") {
L->push(res->domain);
+ } else if (i == "file_name") {
+ L->push(res->file_name);
} else if (i == "server_name") {
L->push(res->server_name);
} else if (i == "return_code") {
@@ -231,6 +233,8 @@ int sLua_HttpResponse::HttpResponse_proceed(Lua * L, int n, HttpResponse * res,
res->location = L->tostring(3);
} else if (i == "domain") {
res->domain = L->tostring(3);
+ } else if (i == "file_name") {
+ res->file_name = L->tostring(3);
} else if (i == "server_name") {
res->server_name = L->tostring(3);
} else if (i == "return_code") {