We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d33b0f3 commit db9f270Copy full SHA for db9f270
stac_fastapi/pgstac/models/links.py
@@ -65,9 +65,7 @@ def url(self):
65
# We need to remove the root path prefix from the path before
66
# joining the base_url and path to get the full url to avoid
67
# having root_path twice in the url
68
- if (
69
- root_path := self.request.scope.get("root_path")
70
- ) and not self.request.app.root_path:
+ if (root_path := self.request.scope.get("root_path")):
71
# self.request.app.root_path is set by FastAPI when running with FastAPI(root_path="...")
72
# If self.request.app.root_path is not set but self.request.scope.get("root_path") is set,
73
# then the root path is set by uvicorn
0 commit comments