Skip to content
This repository has been archived by the owner on Mar 13, 2022. It is now read-only.

Commit

Permalink
Updated the suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Yashks1994 committed May 1, 2021
1 parent b0aae73 commit 3c488d0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions dynamic/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,9 @@ def request(self, method, path, body=None, **params):
local_var_files = {}

# HTTP header `Accept`
if params.get('header_params') is not None:
partial_object = params.get('header_params')
if 'PartialObjectMetadata' in partial_object.get('Accept'):
header_params['Accept'] = 'application/json;as=PartialObjectMetadata;v=v1;g=meta.k8s.io'
if params.get('header_params'):
header_params = params.get('header_params', {})
header_params['Accept'] = header_params.get('Accept')
else:
#default
header_params['Accept'] = self.client.select_header_accept([
Expand Down

0 comments on commit 3c488d0

Please sign in to comment.