Skip to content

Commit

Permalink
Merge pull request #10 from wy-z/wy_develop
Browse files Browse the repository at this point in the history
Refine server url
  • Loading branch information
wy-z authored Feb 5, 2024
2 parents 3ef3c05 + 1107ac2 commit 97f0e49
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion requests_openapi/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ def get_url(self):
return self.url.format(**self.variables)
return self.url

def set_url(self, url: str):
def set_url(self, url: str, strip_slash=True):
if strip_slash:
url = url.rstrip("/")
self.url = url

@classmethod
Expand Down

0 comments on commit 97f0e49

Please sign in to comment.