Commit 8a09873
fix: process links w/o the prefix (#70)
There's times when the underlying STAC API might not have a path on its
root URL, but **stac-auth-proxy** has a path on its `upstream_url`; one
such case is if there's an API Gateway in the way. This patch uses
string replacement for link rewriting, rather than slicing, to handle
these cases while preserving previous behavior.
---------
Co-authored-by: Anthony Lukach <[email protected]>1 parent d3d3769 commit 8a09873
File tree
2 files changed
+21
-2
lines changed- src/stac_auth_proxy/middleware
- tests
2 files changed
+21
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
57 | 60 | | |
58 | | - | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
0 commit comments