Skip to content

Commit a8c1370

Browse files
authored
chore: clarify comment
1 parent ebadd52 commit a8c1370

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stac_auth_proxy/middleware/ProcessLinksMiddleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def _update_link(
9999
scheme=request_url.scheme
100100
)
101101

102-
# Rewrite the link path
102+
# Remove the upstream prefix from the link path
103103
if upstream_url.path != "/" and parsed_link.path.startswith(upstream_url.path):
104104
parsed_link = parsed_link._replace(
105105
path=parsed_link.path[len(upstream_url.path) :]

0 commit comments

Comments
 (0)