Skip to content

Commit

Permalink
prepare v1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
p-fruck committed Feb 28, 2022
1 parent a3c2314 commit cec3742
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion custom/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"packageName": "pfruck_contabo",
"projectName": "pfruck_contabo",
"packageUrl": "https://github.com/p-fruck/python-contabo",
"packageVersion": "1.6.0"
"packageVersion": "1.7.0"
}
2 changes: 1 addition & 1 deletion pfruck_contabo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"""


__version__ = "1.6.0"
__version__ = "1.7.0"

# import ApiClient
from pfruck_contabo.api_client import ApiClient
Expand Down
9 changes: 4 additions & 5 deletions pfruck_contabo/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/1.6.0/python'
self.user_agent = 'OpenAPI-Generator/1.7.0/python'

def __enter__(self):
return self
Expand Down Expand Up @@ -582,7 +582,7 @@ def select_header_content_type(self, content_types, method=None, body=None):
:return: Content-Type (e.g. application/json).
"""
if not content_types:
return None
return 'application/json'

content_types = [x.lower() for x in content_types]

Expand Down Expand Up @@ -842,11 +842,10 @@ def call_with_http_info(self, **kwargs):
content_type_headers_list = self.headers_map['content_type']
if content_type_headers_list:
if params['body'] != "":
content_types_list = self.api_client.select_header_content_type(
header_list = self.api_client.select_header_content_type(
content_type_headers_list, self.settings['http_method'],
params['body'])
if content_types_list:
params['header']['Content-Type'] = content_types_list
params['header']['Content-Type'] = header_list

return self.api_client.call_api(
self.settings['endpoint_path'], self.settings['http_method'],
Expand Down
2 changes: 1 addition & 1 deletion pfruck_contabo/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 1.0.0\n"\
"SDK Package Version: 1.6.0".\
"SDK Package Version: 1.7.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from setuptools import setup, find_packages # noqa: H301

NAME = "pfruck_contabo"
VERSION = "1.6.0"
VERSION = "1.7.0"
# To install the library, run the following
#
# python setup.py install
Expand Down

0 comments on commit cec3742

Please sign in to comment.