Skip to content

Commit b605248

Browse files
authored
fix: always run link processing middleware
closes #97 closes #111
1 parent 6396563 commit b605248

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/stac_auth_proxy/app.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,11 @@ def configure_app(
136136
allowed_jwt_audiences=settings.allowed_jwt_audiences,
137137
)
138138

139-
if settings.root_path or settings.upstream_url.path != "/":
140-
app.add_middleware(
141-
ProcessLinksMiddleware,
142-
upstream_url=str(settings.upstream_url),
143-
root_path=settings.root_path,
144-
)
139+
app.add_middleware(
140+
ProcessLinksMiddleware,
141+
upstream_url=str(settings.upstream_url),
142+
root_path=settings.root_path,
143+
)
145144

146145
if settings.root_path:
147146
app.add_middleware(

0 commit comments

Comments
 (0)