Skip to content

Commit

Permalink
Remove trailing '/' from base url when building resource location path
Browse files Browse the repository at this point in the history
  • Loading branch information
m0rl committed Nov 22, 2024
1 parent 86103b5 commit 395760c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fhirpy/base/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def _build_request_url(self, path, params) -> str:
" (possible security issue)"
)
path = path.lstrip("/")
base_url_path = URL(self.url).path.lstrip("/") + "/"
base_url_path = URL(self.url.rstrip("/")).path.lstrip("/") + "/"
path = remove_prefix(path, base_url_path)
params = params or {}

Expand Down

0 comments on commit 395760c

Please sign in to comment.