You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2018/08/31 16:10:41 UTC

[trafficserver] branch 8.0.x updated: Completes & deduplicates code comment for redirect

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

bcall pushed a commit to branch 8.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/8.0.x by this push:
     new 0a2b96d  Completes & deduplicates code comment for redirect
0a2b96d is described below

commit 0a2b96d116306de0f1474291d4b5176957d3b954
Author: Derek Dagit <de...@oath.com>
AuthorDate: Mon Aug 20 11:41:42 2018 -0500

    Completes & deduplicates code comment for redirect
    
    (cherry picked from commit 48e0565c3c67177bca6ebf6a10015d408d817cb1)
---
 mgmt/RecordsConfig.cc    | 3 ++-
 proxy/http/HttpConfig.cc | 5 +----
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/mgmt/RecordsConfig.cc b/mgmt/RecordsConfig.cc
index e16b130..a0011fb 100644
--- a/mgmt/RecordsConfig.cc
+++ b/mgmt/RecordsConfig.cc
@@ -165,7 +165,8 @@ static const RecordElement RecordsConfig[] =
   //#
   //# 1. number_of_redirections: The maximum number of redirections TS permits. Disabled if set to 0 (default)
   //# 2. proxy.config.http.redirect_use_orig_cache_key: Location Header if set to 0 (default), else use original request cache key
-  //# 3. post_copy_size: The maximum POST data size TS permits to copy
+  //# 3. redirection_host_no_port: do not include default port in host header during redirection
+  //# 4. post_copy_size: The maximum POST data size TS permits to copy
   //#
   //##############################################################################
   {RECT_CONFIG, "proxy.config.http.number_of_redirections", RECD_INT, "0", RECU_DYNAMIC, RR_NULL, RECC_NULL, nullptr, RECA_NULL}
diff --git a/proxy/http/HttpConfig.cc b/proxy/http/HttpConfig.cc
index 97ea45e..7aa54e8 100644
--- a/proxy/http/HttpConfig.cc
+++ b/proxy/http/HttpConfig.cc
@@ -1160,10 +1160,7 @@ HttpConfig::startup()
   //#
   //# Redirection
   //#
-  //# 1. number_of_redirections: The maximum number of redirections YTS permits. 0 == disabled
-  //# 2. redirect_use_orig_cache_key: if set to 1, use original request cache key.
-  //# 3. post_copy_size: The maximum POST data size YTS permits to copy
-  //# 4. redirection_host_no_port: do not include default port in host header during redirection
+  //# See RecordsConfig definition.
   //#
   //##############################################################################
   HttpEstablishStaticConfigByte(c.oride.redirect_use_orig_cache_key, "proxy.config.http.redirect_use_orig_cache_key");