Skip to content

Commit

Permalink
replace lstrip with rstrip to properly remove trailing / from URL (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
TShapinsky authored Jul 17, 2023
1 parent 33c6105 commit f839a44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alfalfa_client/alfalfa_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def __init__(self, host: str = 'http://localhost', api_version: str = 'v2'):
:param host: url for host of alfalfa web server
:param api_version: version of alfalfa api to use (probably don't change this)
"""
self.host = host.lstrip('/')
self.host = host.rstrip('/')
self.haystack_filter = self.host + '/haystack/read?filter='
self.haystack_json_header = {
'Content-Type': 'application/json',
Expand Down

0 comments on commit f839a44

Please # to comment.