Skip to content

Commit

Permalink
- Bump to version 2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Jul 6, 2021
1 parent 6154c5f commit 1d8b378
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gsimporter/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def post_upload_url(self, url, upload_url):
})

def put_zip(self, url, payload):
message = open(payload)
message = open(payload, 'rb+')
with message:
return self._request(url, "PUT", message, {
"Content-type": "application/zip",
Expand Down Expand Up @@ -291,7 +291,7 @@ def post_multipart(self, url, files, fields=[]):
key = fpair[0]
if len(fpair) == 2:
filename = os.path.basename(fpair[1])
fp = open(fpair[1], 'rb')
fp = open(fpair[1], 'rb+')
value = fp.read()
fp.close()
else:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


setup(name = "gn_gsimporter",
version = "2.0.1",
version = "2.0.2",
description = "GeoNode GeoServer Importer Client",
keywords = "GeoNode GeoServer Importer",
license = "MIT",
Expand Down

0 comments on commit 1d8b378

Please sign in to comment.