mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 15:47:01 +02:00
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.
This commit is contained in:
parent
0f9c0f5801
commit
b112b1d02a
10
src/mux_h1.c
10
src/mux_h1.c
@ -4069,7 +4069,7 @@ static int cfg_h1_headers_case_adjust_postparser()
|
|||||||
|
|
||||||
file = fopen(hdrs_map.name, "r");
|
file = fopen(hdrs_map.name, "r");
|
||||||
if (!file) {
|
if (!file) {
|
||||||
ha_alert("h1-outgoing-headers-case-adjust-file '%s': failed to open file.\n",
|
ha_alert("h1-headers-case-adjust-file '%s': failed to open file.\n",
|
||||||
hdrs_map.name);
|
hdrs_map.name);
|
||||||
err_code |= ERR_ALERT | ERR_FATAL;
|
err_code |= ERR_ALERT | ERR_FATAL;
|
||||||
goto end;
|
goto end;
|
||||||
@ -4118,14 +4118,14 @@ static int cfg_h1_headers_case_adjust_postparser()
|
|||||||
err = NULL;
|
err = NULL;
|
||||||
rc = add_hdr_case_adjust(key_beg, value_beg, &err);
|
rc = add_hdr_case_adjust(key_beg, value_beg, &err);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
ha_alert("h1-outgoing-headers-case-adjust-file '%s' : %s at line %d.\n",
|
ha_alert("h1-headers-case-adjust-file '%s' : %s at line %d.\n",
|
||||||
hdrs_map.name, err, line);
|
hdrs_map.name, err, line);
|
||||||
err_code |= ERR_ALERT | ERR_FATAL;
|
err_code |= ERR_ALERT | ERR_FATAL;
|
||||||
free(err);
|
free(err);
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
if (rc > 0) {
|
if (rc > 0) {
|
||||||
ha_warning("h1-outgoing-headers-case-adjust-file '%s' : %s at line %d.\n",
|
ha_warning("h1-headers-case-adjust-file '%s' : %s at line %d.\n",
|
||||||
hdrs_map.name, err, line);
|
hdrs_map.name, err, line);
|
||||||
err_code |= ERR_WARN;
|
err_code |= ERR_WARN;
|
||||||
free(err);
|
free(err);
|
||||||
@ -4151,7 +4151,7 @@ static int cfg_parse_h1_accept_payload_with_any_method(char **args, int section_
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* 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,
|
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,
|
const struct proxy *defpx, const char *file, int line,
|
||||||
char **err)
|
char **err)
|
||||||
@ -4165,7 +4165,7 @@ static int cfg_parse_h1_header_case_adjust(char **args, int section_type, struct
|
|||||||
return add_hdr_case_adjust(args[1], args[2], err);
|
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,
|
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,
|
const struct proxy *defpx, const char *file, int line,
|
||||||
char **err)
|
char **err)
|
||||||
|
Loading…
Reference in New Issue
Block a user