Commit 2136215
fix: strip query parameters from request path before parser resolution (llm-d#1585)
* fix: strip query parameters from request path before parser resolution
The HTTP/2 :path pseudo-header includes query parameters (e.g.
/v1/messages?beta=true), which caused parser suffix matching and
per-parser endpoint validation to fail for clients that append query
strings. Strip query parameters at header ingestion in
HandleRequestHeaders so all downstream consumers see a clean path.
Signed-off-by: greg pereira <gpereira@redhat.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: greg pereira <grpereir@redhat.com>
* fix: add comment explaining query parameter stripping from :path
Signed-off-by: greg pereira <grpereir@redhat.com>
* make implementation non mutating
Signed-off-by: greg pereira <grpereir@redhat.com>
---------
Signed-off-by: greg pereira <gpereira@redhat.com>
Signed-off-by: greg pereira <grpereir@redhat.com>
Co-authored-by: Claude <noreply@anthropic.com>1 parent 866c741 commit 2136215
3 files changed
Lines changed: 26 additions & 18 deletions
File tree
- pkg/epp/framework
- common/request
- plugins/requesthandling/parsers/anthropic
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | | - | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | | - | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | | - | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
50 | 56 | | |
51 | 57 | | |
52 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
54 | 69 | | |
55 | 70 | | |
56 | 71 | | |
| |||
Lines changed: 2 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | | - | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | 144 | | |
158 | 145 | | |
159 | 146 | | |
| |||
0 commit comments