Browse files

Merge pull request #4 from e98cuenc/patch-1

Use body instead of the non existent res.body
  • Loading branch information...
2 parents 37eb37f + ec5d040 commit 7aa6034c5478e386d0c6b6752ef617a1083876b2 @mnaberez mnaberez committed Aug 27, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 superlance/httpok.py
View
2 superlance/httpok.py
@@ -191,7 +191,7 @@ def runforever(self, test=False):
if str(status) != str(self.status):
subject = 'httpok for %s: bad status returned' % self.url
self.act(subject, msg)
- elif self.inbody and self.inbody not in res.body:
+ elif self.inbody and self.inbody not in body:
act = True
subject = 'httpok for %s: bad body returned' % self.url
self.act(subject, msg)

0 comments on commit 7aa6034

Please sign in to comment.