Commit 708b7ee
fix: strip trailing slashes to prevent 307 redirects for Quarkus clients
Quarkus REST Client does not re-send the Authorization header when
following a 307 redirect, causing all /payments/terminals/ requests to
fail silently. Add TrailingSlashMiddleware to normalize paths before
routing and set redirect_slashes=False on the FastAPI app so no
redirects are issued.
Made-with: Cursor1 parent a813b7e commit 708b7ee
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
63 | 78 | | |
64 | 79 | | |
65 | 80 | | |
| |||
176 | 191 | | |
177 | 192 | | |
178 | 193 | | |
| 194 | + | |
179 | 195 | | |
180 | 196 | | |
181 | 197 | | |
| |||
187 | 203 | | |
188 | 204 | | |
189 | 205 | | |
| 206 | + | |
190 | 207 | | |
191 | 208 | | |
192 | 209 | | |
| |||
0 commit comments