@@ -66,12 +66,12 @@ def update_pet(self, **kwargs):
66
66
body_params = params .get ('body' )
67
67
68
68
# HTTP header `Accept`
69
- accepts = ['application/json' , 'application/xml' ]
70
- header_params ['Accept' ] = ApiClient .select_header_accept (accepts )
69
+ header_params ['Accept' ] = ApiClient .select_header_accept (['application/json' , 'application/xml' ])
70
+ if not header_params ['Accept' ]:
71
+ del header_params ['Accept' ]
71
72
72
73
# HTTP header `Content-Type`
73
- content_types = ['application/json' , 'application/xml' ]
74
- header_params ['Content-Type' ] = ApiClient .select_header_content_type (content_types )
74
+ header_params ['Content-Type' ] = ApiClient .select_header_content_type (['application/json' , 'application/xml' ])
75
75
76
76
response = self .api_client .call_api (resource_path , method , path_params , query_params , header_params ,
77
77
body = body_params , post_params = form_params , files = files ,
@@ -107,12 +107,12 @@ def add_pet(self, **kwargs):
107
107
body_params = params .get ('body' )
108
108
109
109
# HTTP header `Accept`
110
- accepts = ['application/json' , 'application/xml' ]
111
- header_params ['Accept' ] = ApiClient .select_header_accept (accepts )
110
+ header_params ['Accept' ] = ApiClient .select_header_accept (['application/json' , 'application/xml' ])
111
+ if not header_params ['Accept' ]:
112
+ del header_params ['Accept' ]
112
113
113
114
# HTTP header `Content-Type`
114
- content_types = ['application/json' , 'application/xml' ]
115
- header_params ['Content-Type' ] = ApiClient .select_header_content_type (content_types )
115
+ header_params ['Content-Type' ] = ApiClient .select_header_content_type (['application/json' , 'application/xml' ])
116
116
117
117
response = self .api_client .call_api (resource_path , method , path_params , query_params , header_params ,
118
118
body = body_params , post_params = form_params , files = files ,
@@ -148,12 +148,12 @@ def find_pets_by_status(self, **kwargs):
148
148
body_params = None
149
149
150
150
# HTTP header `Accept`
151
- accepts = ['application/json' , 'application/xml' ]
152
- header_params ['Accept' ] = ApiClient .select_header_accept (accepts )
151
+ header_params ['Accept' ] = ApiClient .select_header_accept (['application/json' , 'application/xml' ])
152
+ if not header_params ['Accept' ]:
153
+ del header_params ['Accept' ]
153
154
154
155
# HTTP header `Content-Type`
155
- content_types = []
156
- header_params ['Content-Type' ] = ApiClient .select_header_content_type (content_types )
156
+ header_params ['Content-Type' ] = ApiClient .select_header_content_type ([])
157
157
158
158
response = self .api_client .call_api (resource_path , method , path_params , query_params , header_params ,
159
159
body = body_params , post_params = form_params , files = files ,
@@ -191,12 +191,12 @@ def find_pets_by_tags(self, **kwargs):
191
191
body_params = None
192
192
193
193
# HTTP header `Accept`
194
- accepts = ['application/json' , 'application/xml' ]
195
- header_params ['Accept' ] = ApiClient .select_header_accept (accepts )
194
+ header_params ['Accept' ] = ApiClient .select_header_accept (['application/json' , 'application/xml' ])
195
+ if not header_params ['Accept' ]:
196
+ del header_params ['Accept' ]
196
197
197
198
# HTTP header `Content-Type`
198
- content_types = []
199
- header_params ['Content-Type' ] = ApiClient .select_header_content_type (content_types )
199
+ header_params ['Content-Type' ] = ApiClient .select_header_content_type ([])
200
200
201
201
response = self .api_client .call_api (resource_path , method , path_params , query_params , header_params ,
202
202
body = body_params , post_params = form_params , files = files ,
@@ -238,12 +238,12 @@ def get_pet_by_id(self, pet_id, **kwargs):
238
238
body_params = None
239
239
240
240
# HTTP header `Accept`
241
- accepts = ['application/json' , 'application/xml' ]
242
- header_params ['Accept' ] = ApiClient .select_header_accept (accepts )
241
+ header_params ['Accept' ] = ApiClient .select_header_accept (['application/json' , 'application/xml' ])
242
+ if not header_params ['Accept' ]:
243
+ del header_params ['Accept' ]
243
244
244
245
# HTTP header `Content-Type`
245
- content_types = []
246
- header_params ['Content-Type' ] = ApiClient .select_header_content_type (content_types )
246
+ header_params ['Content-Type' ] = ApiClient .select_header_content_type ([])
247
247
248
248
response = self .api_client .call_api (resource_path , method , path_params , query_params , header_params ,
249
249
body = body_params , post_params = form_params , files = files ,
@@ -287,12 +287,12 @@ def update_pet_with_form(self, pet_id, **kwargs):
287
287
body_params = None
288
288
289
289
# HTTP header `Accept`
290
- accepts = ['application/json' , 'application/xml' ]
291
- header_params ['Accept' ] = ApiClient .select_header_accept (accepts )
290
+ header_params ['Accept' ] = ApiClient .select_header_accept (['application/json' , 'application/xml' ])
291
+ if not header_params ['Accept' ]:
292
+ del header_params ['Accept' ]
292
293
293
294
# HTTP header `Content-Type`
294
- content_types = ['application/x-www-form-urlencoded' ]
295
- header_params ['Content-Type' ] = ApiClient .select_header_content_type (content_types )
295
+ header_params ['Content-Type' ] = ApiClient .select_header_content_type (['application/x-www-form-urlencoded' ])
296
296
297
297
response = self .api_client .call_api (resource_path , method , path_params , query_params , header_params ,
298
298
body = body_params , post_params = form_params , files = files ,
@@ -333,12 +333,12 @@ def delete_pet(self, pet_id, **kwargs):
333
333
body_params = None
334
334
335
335
# HTTP header `Accept`
336
- accepts = ['application/json' , 'application/xml' ]
337
- header_params ['Accept' ] = ApiClient .select_header_accept (accepts )
336
+ header_params ['Accept' ] = ApiClient .select_header_accept (['application/json' , 'application/xml' ])
337
+ if not header_params ['Accept' ]:
338
+ del header_params ['Accept' ]
338
339
339
340
# HTTP header `Content-Type`
340
- content_types = []
341
- header_params ['Content-Type' ] = ApiClient .select_header_content_type (content_types )
341
+ header_params ['Content-Type' ] = ApiClient .select_header_content_type ([])
342
342
343
343
response = self .api_client .call_api (resource_path , method , path_params , query_params , header_params ,
344
344
body = body_params , post_params = form_params , files = files ,
@@ -380,12 +380,12 @@ def upload_file(self, pet_id, **kwargs):
380
380
body_params = None
381
381
382
382
# HTTP header `Accept`
383
- accepts = ['application/json' , 'application/xml' ]
384
- header_params ['Accept' ] = ApiClient .select_header_accept (accepts )
383
+ header_params ['Accept' ] = ApiClient .select_header_accept (['application/json' , 'application/xml' ])
384
+ if not header_params ['Accept' ]:
385
+ del header_params ['Accept' ]
385
386
386
387
# HTTP header `Content-Type`
387
- content_types = ['multipart/form-data' ]
388
- header_params ['Content-Type' ] = ApiClient .select_header_content_type (content_types )
388
+ header_params ['Content-Type' ] = ApiClient .select_header_content_type (['multipart/form-data' ])
389
389
390
390
response = self .api_client .call_api (resource_path , method , path_params , query_params , header_params ,
391
391
body = body_params , post_params = form_params , files = files ,
0 commit comments