Skip to content

Commit

Permalink
Added gzip as default request header (Chaffelson#277)
Browse files Browse the repository at this point in the history
* Added gzip as default request header

* Gzip Fix on the mustache  template
  • Loading branch information
rsaggino committed Nov 2, 2022
1 parent edaaa72 commit 271788d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions nipyapi/nifi/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def __init__(self, host=None, header_name=None, header_value=None, cookie=None):
"""
self.rest_client = RESTClientObject()
self.default_headers = {}
self.default_headers["Accept-Encoding"] = 'gzip, deflate'
if header_name is not None:
self.default_headers[header_name] = header_value
if host is None:
Expand Down
2 changes: 1 addition & 1 deletion resources/client_gen/swagger_templates/api_client.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class ApiClient(object):
Constructor of the class.
"""
self.rest_client = RESTClientObject()
self.default_headers = {}
self.default_headers["Accept-Encoding"] = 'gzip, deflate'
if header_name is not None:
self.default_headers[header_name] = header_value
if host is None:
Expand Down

0 comments on commit 271788d

Please sign in to comment.