mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-09 06:46:55 +00:00
BUG: 51d: In Hash Trie, multi header matching was affected by the header names stored globaly.
Some logic around mutli header matching in Hash Trie has been improved where only the name of the most important header was stored in the global heade_names structure. Now all headers are stored, so are used in the mutli header matching correctly.
This commit is contained in:
parent
7701cad444
commit
e0f6a2a2aa
@ -541,8 +541,8 @@ void _51d_init_http_headers()
|
||||
global_51degrees.header_offsets = malloc(global_51degrees.header_count * sizeof(int32_t));
|
||||
for (index = 0; index < global_51degrees.header_count; index++) {
|
||||
global_51degrees.header_offsets[index] = fiftyoneDegreesGetHttpHeaderNameOffset(ds, index);
|
||||
global_51degrees.header_names->area = (char*)fiftyoneDegreesGetHttpHeaderNamePointer(ds, index);
|
||||
global_51degrees.header_names->data = strlen(global_51degrees.header_names->area);
|
||||
global_51degrees.header_names[index].area = (char*)fiftyoneDegreesGetHttpHeaderNamePointer(ds, index);
|
||||
global_51degrees.header_names[index].data = strlen(global_51degrees.header_names[index].area);
|
||||
global_51degrees.header_names[index].size = global_51degrees.header_names->data;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user