Fix1: Package upload using Python3 was still broken: BUILD_v4.0.1_1 BUILD_v4.0.1_2
authorpeusterm <manuel.peuster@uni-paderborn.de>
Fri, 15 Jun 2018 12:46:23 +0000 (14:46 +0200)
committerpeusterm <manuel.peuster@uni-paderborn.de>
Fri, 15 Jun 2018 12:46:23 +0000 (14:46 +0200)
commit119f79ff8103018c12d9f3f5083a97e5a34aecba
tree38ac666c7223a2d95b598d6a43e626fa2b554c47
parentbe96096ebd71c8d36c8375387f8e671f12eedfb0
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