CLEANUP: mux-h1: Fix comments and error messages for global options
Wrong name was used in comments and error messages for
"h1-header-case-adjust" and "h1-headers-case-adjust-file" global options.
(cherry picked from commit b112b1d02a6bdfc0de10e22e129d7daa65624bc4)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 70fc69a77785f2fe6612a7ca640034e95fded878)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
diff --git a/src/mux_h1.c b/src/mux_h1.c
index ead91a8..fd568e9 100644
--- a/src/mux_h1.c
+++ b/src/mux_h1.c
@@ -3825,7 +3825,7 @@
file = fopen(hdrs_map.name, "r");
if (!file) {
- ha_alert("config : h1-outgoing-headers-case-adjust-file '%s': failed to open file.\n",
+ ha_alert("config : h1-headers-case-adjust-file '%s': failed to open file.\n",
hdrs_map.name);
err_code |= ERR_ALERT | ERR_FATAL;
goto end;
@@ -3874,14 +3874,14 @@
err = NULL;
rc = add_hdr_case_adjust(key_beg, value_beg, &err);
if (rc < 0) {
- ha_alert("config : h1-outgoing-headers-case-adjust-file '%s' : %s at line %d.\n",
+ ha_alert("config : h1-headers-case-adjust-file '%s' : %s at line %d.\n",
hdrs_map.name, err, line);
err_code |= ERR_ALERT | ERR_FATAL;
free(err);
goto end;
}
if (rc > 0) {
- ha_warning("config : h1-outgoing-headers-case-adjust-file '%s' : %s at line %d.\n",
+ ha_warning("config : h1-headers-case-adjust-file '%s' : %s at line %d.\n",
hdrs_map.name, err, line);
err_code |= ERR_WARN;
free(err);
@@ -3896,7 +3896,7 @@
}
-/* config parser for global "h1-outgoing-header-case-adjust" */
+/* config parser for global "h1-header-case-adjust" */
static int cfg_parse_h1_header_case_adjust(char **args, int section_type, struct proxy *curpx,
const struct proxy *defpx, const char *file, int line,
char **err)
@@ -3910,7 +3910,7 @@
return add_hdr_case_adjust(args[1], args[2], err);
}
-/* config parser for global "h1-outgoing-headers-case-adjust-file" */
+/* config parser for global "h1-headers-case-adjust-file" */
static int cfg_parse_h1_headers_case_adjust_file(char **args, int section_type, struct proxy *curpx,
const struct proxy *defpx, const char *file, int line,
char **err)