# endpoint = '/nsds' if pkg_type['type'] == 'nsd' else '/vnfds'
# print('Endpoint: {}'.format(endpoint))
headers = self._client._headers
- headers["Content-Type"] = "application/gzip"
+
+ if filename.endswith(".tar.gz"):
+ headers["Content-Type"] = "application/gzip"
+ else:
+ headers["Content-Type"] = "application/zip"
# headers['Content-Type'] = 'application/binary'
# Next three lines are to be removed in next version
# headers['Content-Filename'] = basename(filename)