Skip to content

Commit d3a14cc

Browse files
committed
fix a typo in the request.post call.
1 parent abc165d commit d3a14cc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/bap.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,11 +305,10 @@ def dumps(self,dic):
305305

306306
def call(self, data):
307307
if isinstance(data, dict):
308-
method = request.post
309-
return jsons(method(self.url, data=self.dumps(data)))
308+
return jsons(request.post(self.url, data=self.dumps(data)))
310309
else:
311310
gen = (self.dumps(msg) for msg in data)
312-
return jsons(request.post(self.uri, data=gen))
311+
return jsons(request.post(self.url, data=gen))
313312

314313

315314
def mmap(self, data):

0 commit comments

Comments
 (0)