Fix error: AttributeError: 'module' object has no attribute 'POST'

This commit is contained in:
Roberto Romero
2014-04-19 01:41:23 -03:00
parent 0457c3c30e
commit 06b647e30d

View File

@@ -192,9 +192,9 @@ class XBMC:
url = host + '/jsonrpc'
if self.password:
response = request.request_json(url, method="POST", data=simplejson.dumps(data), headers=headers, auth=(self.username, self.password))
response = request.request_json(url, method="post", data=simplejson.dumps(data), headers=headers, auth=(self.username, self.password))
else:
response = request.request_json(url, method="POST", data=simplejson.dumps(data), headers=headers)
response = request.request_json(url, method="post", data=simplejson.dumps(data), headers=headers)
if response:
return response[0]['result']