From 06b647e30d2ec622288ff9517e384160188135b9 Mon Sep 17 00:00:00 2001 From: Roberto Romero Date: Sat, 19 Apr 2014 01:41:23 -0300 Subject: [PATCH] Fix error: AttributeError: 'module' object has no attribute 'POST' --- headphones/notifiers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/headphones/notifiers.py b/headphones/notifiers.py index a549db80..1287cb01 100644 --- a/headphones/notifiers.py +++ b/headphones/notifiers.py @@ -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']