The map used to adjust the H1 headers case was moved in h1-htx part. For
this purpose h1_htx-t.h file was added and h1_hdrs_map and h1_hdr_entry
structures were moved into this file.
This commit is mandatory for the next fix.
--- /dev/null
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+
+#ifndef _HAPROXY_H1_HTX_T_H
+#define _HAPROXY_H1_HTX_T_H
+
+#include <import/ist.h>
+#include <import/ebpttree.h>
+
+/* Map of headers used to convert outgoing headers */
+struct h1_hdrs_map {
+ char *name;
+ struct eb_root map;
+};
+
+/* An entry in a headers map */
+struct h1_hdr_entry {
+ struct ist name;
+ struct ebpt_node node;
+};
+
+#endif /* _HAPROXY_H1_HTX_T_H */
#include <haproxy/api-t.h>
#include <haproxy/buf-t.h>
#include <haproxy/h1.h>
+#include <haproxy/h1_htx-t.h>
#include <haproxy/htx.h>
int h1_parse_msg_hdrs(struct h1m *h1m, union h1_sl *h1sl, struct htx *dsthtx,
char ws_key[25]; /* websocket handshake key */
};
-/* Map of headers used to convert outgoing headers */
-struct h1_hdrs_map {
- char *name;
- struct eb_root map;
-};
-
-/* An entry in a headers map */
-struct h1_hdr_entry {
- struct ist name;
- struct ebpt_node node;
-};
-
/* Declare the headers map */
static struct h1_hdrs_map hdrs_map = { .name = NULL, .map = EB_ROOT };
static int accept_payload_with_any_method = 0;