Fix1: Package upload using Python3 was still broken:
[osm/osmclient.git] / osmclient / sol005 / nsd.py
index 0dbec43..63308d6 100644 (file)
@@ -128,7 +128,7 @@ class Nsd(object):
         headers= self._client._headers
         if mime_type in ['application/yaml', 'text/plain']:
             headers['Content-Type'] = 'application/yaml'
-        elif mime_type == 'application/gzip':
+        elif mime_type in ['application/gzip', 'application/x-gzip']:
             headers['Content-Type'] = 'application/gzip'
             #headers['Content-Type'] = 'application/binary'
             # Next three lines are to be removed in next version