Skip to content

Commit

Permalink
Bump to version 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Aug 21, 2019
1 parent f81e4e3 commit 31df24c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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'},
Expand Down
2 changes: 1 addition & 1 deletion src/geoserver/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 31df24c

Please sign in to comment.