From 31df24c94e643500c62be925fab98b054279857e Mon Sep 17 00:00:00 2001 From: afabiani Date: Wed, 21 Aug 2019 17:18:23 +0200 Subject: [PATCH] Bump to version 1.0.2 --- setup.py | 4 ++-- src/geoserver/catalog.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 4eba161..7ae77f0 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( name="geoserver-restconfig", - version="1.0.1", + version="1.0.2", description="GeoServer REST Configuration", long_description=readme_text, keywords="GeoServer REST Configuration", @@ -20,7 +20,7 @@ author_email="alessio.fabiani@gmail.com", install_requires=[ 'requests >= 2.14.0', - 'gisdata == 0.5.4', + 'gisdata >= 0.5.4', 'future' ], package_dir={'': 'src'}, diff --git a/src/geoserver/catalog.py b/src/geoserver/catalog.py index 4a7cd1a..b1a0d10 100644 --- a/src/geoserver/catalog.py +++ b/src/geoserver/catalog.py @@ -152,7 +152,7 @@ def http_request(self, url, data=None, method='get', headers={}): resp = req_method(url, headers=headers, data=data) else: valid_uname_pw = base64.b64encode( - b"%s:%s" % (self.username, self.password)).decode("ascii") + ("%s:%s" % (self.username, self.password)).encode("utf-8")).decode("ascii") headers['Authorization'] = 'Basic {}'.format(valid_uname_pw) resp = req_method(url, headers=headers, data=data) return resp