Commit 17defa5
authored
Commit Message: router: fix a bug where header mutations may not be
processed properly
Additional Description:
The #39534 introduced a bug
where the `response_headers_to_add`` may be processed multiple times for
local responses from the router filter.
The sendLocalReply method will call the `finalizeResponseHeaders()` and
the #39534 updated the code and
make the `finalizeResponseHeaders()` be called in the modify_headers_
callback. This finally resulted in this problem.
Risk Level: low.
Testing: integration.
Docs Changes: n/a.
Release Notes: added.
Platform Specific Features: n/a.
Signed-off-by: WangBaiping <[email protected]>
Signed-off-by: code <[email protected]>
1 parent 21c88a1 commit 17defa5
File tree
4 files changed
+44
-7
lines changed- changelogs
- source/common/router
- test
- common/router
- integration
4 files changed
+44
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
458 | | - | |
459 | | - | |
460 | 458 | | |
461 | 459 | | |
462 | 460 | | |
| |||
1758 | 1756 | | |
1759 | 1757 | | |
1760 | 1758 | | |
| 1759 | + | |
1761 | 1760 | | |
1762 | 1761 | | |
1763 | 1762 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
811 | 811 | | |
812 | 812 | | |
813 | 813 | | |
814 | | - | |
815 | 814 | | |
816 | 815 | | |
817 | 816 | | |
| |||
846 | 845 | | |
847 | 846 | | |
848 | 847 | | |
849 | | - | |
850 | 848 | | |
851 | 849 | | |
852 | 850 | | |
| |||
894 | 892 | | |
895 | 893 | | |
896 | 894 | | |
897 | | - | |
898 | 895 | | |
899 | 896 | | |
900 | 897 | | |
| |||
1226 | 1223 | | |
1227 | 1224 | | |
1228 | 1225 | | |
1229 | | - | |
1230 | 1226 | | |
1231 | 1227 | | |
1232 | 1228 | | |
| |||
3332 | 3328 | | |
3333 | 3329 | | |
3334 | 3330 | | |
3335 | | - | |
3336 | 3331 | | |
3337 | 3332 | | |
3338 | 3333 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1053 | 1053 | | |
1054 | 1054 | | |
1055 | 1055 | | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
1056 | 1095 | | |
1057 | 1096 | | |
1058 | 1097 | | |
| |||
0 commit comments