From 608721818154359f9d83e5a7496cfe2aa03469fc Mon Sep 17 00:00:00 2001 From: Peter Chou Date: Mon, 2 May 2016 12:00:23 -0700 Subject: [PATCH 1/2] TS-4411 : Added an error message if an unrecognized '@...' remap option is included in the remap configuration file. --- proxy/http/remap/RemapConfig.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proxy/http/remap/RemapConfig.cc b/proxy/http/remap/RemapConfig.cc index 6a33352ad2a..5692a3272be 100644 --- a/proxy/http/remap/RemapConfig.cc +++ b/proxy/http/remap/RemapConfig.cc @@ -669,6 +669,8 @@ remap_check_option(const char **argv, int argc, unsigned long findmode, int *_re idx = i; } ret_flags |= REMAP_OPTFLG_INTERNAL; + } else { + TSError("remap_check_option(): Option '%s' in remap configuration is not valid.\n",argv[i]); } if ((findmode & ret_flags) && !argptr) { From 29007f5f3ecc43763bf2472f8bbf8e5c2a0d3650 Mon Sep 17 00:00:00 2001 From: Peter Chou Date: Mon, 2 May 2016 14:12:27 -0700 Subject: [PATCH 2/2] TS-4411 : Fixed formatting with clang-format. --- proxy/http/remap/RemapConfig.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/http/remap/RemapConfig.cc b/proxy/http/remap/RemapConfig.cc index 5692a3272be..a5948ee8691 100644 --- a/proxy/http/remap/RemapConfig.cc +++ b/proxy/http/remap/RemapConfig.cc @@ -670,7 +670,7 @@ remap_check_option(const char **argv, int argc, unsigned long findmode, int *_re } ret_flags |= REMAP_OPTFLG_INTERNAL; } else { - TSError("remap_check_option(): Option '%s' in remap configuration is not valid.\n",argv[i]); + TSError("remap_check_option(): Option '%s' in remap configuration is not valid.\n", argv[i]); } if ((findmode & ret_flags) && !argptr) {