Skip to content

Commit b3dedaf

Browse files
committed
Remove trailing '/' from collections
1 parent afcca63 commit b3dedaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/catalog/rs_server_catalog/user_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def reroute_url( # type: ignore # pylint: disable=too-many-branches,too-many-st
111111
path = "/health"
112112

113113
# The endpoint PUT "/catalog/collections" does not exists.
114-
elif path == CATALOG_COLLECTION and method != "PUT":
114+
elif path.rstrip("/") == CATALOG_COLLECTION and method != "PUT":
115115
path = "/collections"
116116

117117
# Catch endpoint /catalog/collections/[{owner_id}:]{collection_id}/bulk_items

0 commit comments

Comments
 (0)