You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by jp...@apache.org on 2012/05/11 06:01:17 UTC
[8/32] git commit: More comments
More comments
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/40b21fe0
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/40b21fe0
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/40b21fe0
Branch: refs/heads/jpeach/lua
Commit: 40b21fe068a83ccebdb623f4cad7039024514c3c
Parents: 30fd81d
Author: James Peach <jp...@apache.org>
Authored: Thu Apr 19 21:18:10 2012 -0700
Committer: James Peach <jp...@apache.org>
Committed: Thu May 10 20:23:43 2012 -0700
----------------------------------------------------------------------
plugins/lua/lua.cc | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/40b21fe0/plugins/lua/lua.cc
----------------------------------------------------------------------
diff --git a/plugins/lua/lua.cc b/plugins/lua/lua.cc
index f967b35..b13537c 100644
--- a/plugins/lua/lua.cc
+++ b/plugins/lua/lua.cc
@@ -111,6 +111,8 @@ LuaPluginRemap(lua_State * lua, TSHttpTxn txn, TSRemapRequestInfo * rri)
// XXX The 'to' and 'from' URLs are supposed to be static so we can cache them somewhere
// in the Lua state.
+ // XXX Do we really need to pass this at all? You can get the current URL from the request, so
+ // there's not really a need for these that I can see ...
LuaPushUrl(lua, rri->requestBufp, rri->mapFromUrl);
LuaPushUrl(lua, rri->requestBufp, rri->mapToUrl);