Fix1: Package upload using Python3 was still broken: 79/6279/1
authorpeusterm <manuel.peuster@upb.de>
Fri, 15 Jun 2018 12:46:23 +0000 (14:46 +0200)
committerpeusterm <manuel.peuster@upb.de>
Fri, 15 Jun 2018 12:46:23 +0000 (14:46 +0200)
commitf0a1e22dd438fa6ac6dc2f09e090382c7d6e2545
tree38ac666c7223a2d95b598d6a43e626fa2b554c47
parentbd1e05f5d5f89dce132a98853d3035f9dfc8d168
Fix1: Package upload using Python3 was still broken:
Loading file contents using 'r' does not work in Python 3
and results in an encoding error. Replaced with 'rb'.

Fix2: Be more robust when MIME types are detected:
Treat 'application/x-gzip' as 'application/gzip'.
(This will also allow to use osmclient on OS X)

Change-Id: I430b2fae2c275803120a6815d01bb26bff26ebdc
Signed-off-by: peusterm <manuel.peuster@upb.de>
osmclient/sol005/http.py
osmclient/sol005/nsd.py
osmclient/sol005/vnfd.py