Skip to content

Commit 3fb082b

Browse files
make sure URL is a String (#607)
* make sure URL is a String * also fix in tms * update changelog
1 parent 4975fc3 commit 3fb082b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CHANGES.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Release Notes
22

3-
## Next (TBD)
3+
## 0.11.3 (2023-03-14)
44

55
* handle dateline crossing dataset in COG/STAC Viewer
6+
* update Factories `url_for` method to make sure we return a string (https://github.com/developmentseed/titiler/pull/607)
67

78
## 0.11.2 (2023-03-08)
89

src/titiler/core/titiler/core/factory.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,7 @@ def url_for(self, request: Request, name: str, **path_params: Any) -> str:
204204
)
205205
base_url += prefix
206206

207-
url = url_path.make_absolute_url(base_url=base_url)
208-
return url
207+
return str(url_path.make_absolute_url(base_url=base_url))
209208

210209
def add_route_dependencies(
211210
self,
@@ -1519,7 +1518,8 @@ def url_for(self, request: Request, name: str, **path_params: Any) -> str:
15191518
base_url = str(request.base_url)
15201519
if self.router_prefix:
15211520
base_url += self.router_prefix.lstrip("/")
1522-
return url_path.make_absolute_url(base_url=base_url)
1521+
1522+
return str(url_path.make_absolute_url(base_url=base_url))
15231523

15241524
def register_routes(self):
15251525
"""Register TMS endpoint routes."""

0 commit comments

Comments
 (0)