This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 5675f7d  Replaces TSHttpTxnFollowRedirect with TSHttpTxnConfigIntSet 
for Lua
5675f7d is described below

commit 5675f7d790a38970d34a163ed03e5ec3d9d1b49c
Author: Leif Hedstrom <zw...@apache.org>
AuthorDate: Mon Feb 12 16:51:38 2018 -0700

    Replaces TSHttpTxnFollowRedirect with TSHttpTxnConfigIntSet for Lua
---
 plugins/experimental/ts_lua/ts_lua_http_config.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/plugins/experimental/ts_lua/ts_lua_http_config.c 
b/plugins/experimental/ts_lua/ts_lua_http_config.c
index 1a57d79..2619969 100644
--- a/plugins/experimental/ts_lua/ts_lua_http_config.c
+++ b/plugins/experimental/ts_lua/ts_lua_http_config.c
@@ -549,6 +549,7 @@ ts_lua_http_client_packet_tos_set(lua_State *L)
   return 0;
 }
 
+/* ToDo: This should be removed, it's not needed */
 static int
 ts_lua_http_enable_redirect(lua_State *L)
 {
@@ -560,7 +561,7 @@ ts_lua_http_enable_redirect(lua_State *L)
   value = luaL_checkinteger(L, 1);
 
   TSDebug(TS_LUA_DEBUG_TAG, "enable redirect");
-  TSHttpTxnFollowRedirect(http_ctx->txnp, value);
+  TSHttpTxnConfigIntSet(http_ctx->txnp, TS_CONFIG_HTTP_NUMBER_OF_REDIRECTIONS, 
value);
 
   return 0;
 }

-- 
To stop receiving notification emails like this one, please contact
zw...@apache.org.

Reply via email to