Permalink
Browse files

Merge pull request #6 from e98cuenc/patch-3

Support query arguments in the URL
  • Loading branch information...
mnaberez committed Aug 27, 2011
2 parents 7462bcb + becd18a commit ca9731341c062ea70f174df611f07a7f0f38a66a
Showing with 4 additions and 5 deletions.
  1. +4 −5 superlance/httpok.py
View
@@ -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)

0 comments on commit ca97313

Please sign in to comment.