From 5948d9a32e2205fc9884551b9cc6802911ee185a Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Sun, 17 Nov 2013 15:53:09 +0200 Subject: [PATCH] fixed remote request query args --- motioneye.py | 2 +- src/remote.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/motioneye.py b/motioneye.py index adc8bc0..98962fa 100755 --- a/motioneye.py +++ b/motioneye.py @@ -28,7 +28,7 @@ import settings sys.path.append(os.path.join(settings.PROJECT_PATH, 'src')) -VERSION = '0.5' +VERSION = '0.6' def _test_requirements(): diff --git a/src/remote.py b/src/remote.py index ec0dde4..532439b 100644 --- a/src/remote.py +++ b/src/remote.py @@ -33,7 +33,7 @@ def _make_request(host, port, username, password, uri, method='GET', data=None, 'uri': uri} if query: - url += '?' + '='.join(query.items()) + url += '?' + '&'.join([(n + '=' + v) for (n, v) in query.iteritems()]) request = HTTPRequest(url, method, body=data, auth_username=username, auth_password=password, request_timeout=settings.REMOTE_REQUEST_TIMEOUT) -- 2.39.5