Skip to content

Commit

Permalink
Remove trainling slashes from URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
SupraSummus committed Nov 30, 2023
1 parent 0adcbe1 commit bbced32
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pysolr.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,11 +484,11 @@ def _select(self, params, handler=None):

if len(params_encoded) < 1024:
# Typical case.
path = "%s/?%s" % (handler, params_encoded)
path = "%s?%s" % (handler, params_encoded)
return self._send_request("get", path)
else:
# Handles very long queries by submitting as a POST.
path = "%s/" % handler
path = "%s" % handler
headers = {
"Content-type": "application/x-www-form-urlencoded; charset=utf-8"
}
Expand Down Expand Up @@ -534,7 +534,7 @@ def _update(
path_handler = "select"
query_vars.append("qt=%s" % safe_urlencode(handler, True))

path = "%s/" % path_handler
path = "%s" % path_handler

if commit is None:
commit = self.always_commit
Expand Down Expand Up @@ -1261,11 +1261,11 @@ def ping(self, handler="admin/ping", **kwargs):

if len(params_encoded) < 1024:
# Typical case.
path = "%s/?%s" % (handler, params_encoded)
path = "%s?%s" % (handler, params_encoded)
return self._send_request("get", path)
else:
# Handles very long queries by submitting as a POST.
path = "%s/" % handler
path = "%s" % handler
headers = {
"Content-type": "application/x-www-form-urlencoded; charset=utf-8"
}
Expand Down

0 comments on commit bbced32

Please sign in to comment.