Fixing post

This commit is contained in:
Rafael Caricio 2011-08-22 11:36:10 -03:00
parent 377794d96b
commit 68b6d8ff10

View file

@ -60,7 +60,7 @@ class DjangoContext(Vows.Context):
return urllib2.urlopen(self.get_url(path))
def post(self, path, params):
return urllib2.urlopen(self.get_url(path), data=params)
return urllib2.urlopen(self.get_url(path), data=urllib2.urlencode(params))
def get_url(self, path):
ctx = self.parent