@@ -92,7 +92,7 @@ def __init__(
9292 self .default_headers [header_name ] = header_value
9393 self .cookie = cookie
9494 # Set default User-Agent.
95- self .user_agent = 'OpenAPI-Generator/v1.6.71 /python'
95+ self .user_agent = 'OpenAPI-Generator/v1.6.72 /python'
9696 self .client_side_validation = configuration .client_side_validation
9797
9898 def __enter__ (self ):
@@ -313,7 +313,7 @@ def response_deserialize(
313313 return_data = self .__deserialize_file (response_data )
314314 elif response_type is not None :
315315 match = None
316- content_type = response_data .getheader ('content-type' )
316+ content_type = response_data .headers . get ('content-type' )
317317 if content_type is not None :
318318 match = re .search (r"charset=([a-zA-Z\-\d]+)[\s;]?" , content_type )
319319 encoding = match .group (1 ) if match else "utf-8"
@@ -330,7 +330,7 @@ def response_deserialize(
330330 return ApiResponse (
331331 status_code = response_data .status ,
332332 data = return_data ,
333- headers = response_data .getheaders () ,
333+ headers = response_data .headers ,
334334 raw_data = response_data .data
335335 )
336336
@@ -702,7 +702,7 @@ def __deserialize_file(self, response):
702702 os .close (fd )
703703 os .remove (path )
704704
705- content_disposition = response .getheader ("Content-Disposition" )
705+ content_disposition = response .headers . get ("Content-Disposition" )
706706 if content_disposition :
707707 m = re .search (
708708 r'filename=[\'"]?([^\'"\s]+)[\'"]?' ,
0 commit comments