Skip to content

Commit 377d259

Browse files
Use a slice to strip trailing endpoint slash
1 parent 6d7635b commit 377d259

File tree

1 file changed

+1
-1
lines changed
  • codegen/smithy-python-codegen/src/main/java/software/amazon/smithy/python/codegen

1 file changed

+1
-1
lines changed

codegen/smithy-python-codegen/src/main/java/software/amazon/smithy/python/codegen/ClientGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ async def _handle_attempt(
316316
if not endpoint.url.path:
317317
endpoint.url.path = ""
318318
elif endpoint.url.path.endswith("/"):
319-
endpoint.url.path = endpoint.url.path.rstrip("/")
319+
endpoint.url.path = endpoint.url.path[:-1]
320320
if context.transport_request.url.path:
321321
endpoint.url.path += context.transport_request.url.path
322322
endpoint.url.query = context.transport_request.url.query

0 commit comments

Comments
 (0)