Skip to content

Loading…

Support query arguments in the URL #6

Merged
merged 2 commits into from

2 participants

@e98cuenc

Another typo, urlsplit places the query arguments in the index 3, not 4 (urlparse is the function that places it in index 4).

@mnaberez mnaberez merged commit ca97313 into Supervisor:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Showing with 4 additions and 5 deletions.
  1. +4 −5 superlance/httpok.py
View
9 superlance/httpok.py
@@ -140,8 +140,10 @@ def runforever(self, test=False):
scheme = parsed[0].lower()
hostport = parsed[1]
path = parsed[2]
- params = parsed[3]
- query = parsed[4]
+ query = parsed[3]
+
+ if query:
+ path += '?' + query
if self.connclass:
ConnClass = self.connclass
@@ -167,9 +169,6 @@ def runforever(self, test=False):
conn = ConnClass(hostport)
conn.timeout = self.timeout
- if query:
- path += '?' + query
-
act = False
specs = self.listProcesses(ProcessStates.RUNNING)
Something went wrong with that request. Please try again.