File tree Expand file tree Collapse file tree
modules/openapi-generator/src/main/resources/python
python-disallowAdditionalPropertiesIfNotPresent/openapi_client
python-aiohttp/petstore_api
python-httpx/petstore_api
python-lazyImports/petstore_api Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -336,7 +336,7 @@ class ApiClient:
336336 return ApiResponse(
337337 status_code = response_data.status,
338338 data = return_data,
339- headers = response_data.getheaders (),
339+ headers = response_data.getheader (),
340340 raw_data = response_data.data
341341 )
342342
@@ -717,7 +717,7 @@ class ApiClient:
717717 os.close(fd)
718718 os.remove(path)
719719
720- content_disposition = response.getheaders ("Content-Disposition")
720+ content_disposition = response.getheader ("Content-Disposition")
721721 if content_disposition:
722722 m = re.search(
723723 r'filename=[\'"]?([^\'"\s]+)[\'"]?',
Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ def response_deserialize(
329329 return ApiResponse (
330330 status_code = response_data .status ,
331331 data = return_data ,
332- headers = response_data .getheaders (),
332+ headers = response_data .getheader (),
333333 raw_data = response_data .data
334334 )
335335
@@ -701,7 +701,7 @@ def __deserialize_file(self, response):
701701 os .close (fd )
702702 os .remove (path )
703703
704- content_disposition = response .getheaders ("Content-Disposition" )
704+ content_disposition = response .getheader ("Content-Disposition" )
705705 if content_disposition :
706706 m = re .search (
707707 r'filename=[\'"]?([^\'"\s]+)[\'"]?' ,
Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ def response_deserialize(
329329 return ApiResponse (
330330 status_code = response_data .status ,
331331 data = return_data ,
332- headers = response_data .getheaders (),
332+ headers = response_data .getheader (),
333333 raw_data = response_data .data
334334 )
335335
@@ -701,7 +701,7 @@ def __deserialize_file(self, response):
701701 os .close (fd )
702702 os .remove (path )
703703
704- content_disposition = response .getheaders ("Content-Disposition" )
704+ content_disposition = response .getheader ("Content-Disposition" )
705705 if content_disposition :
706706 m = re .search (
707707 r'filename=[\'"]?([^\'"\s]+)[\'"]?' ,
Original file line number Diff line number Diff line change @@ -331,7 +331,7 @@ def response_deserialize(
331331 return ApiResponse (
332332 status_code = response_data .status ,
333333 data = return_data ,
334- headers = response_data .getheaders (),
334+ headers = response_data .getheader (),
335335 raw_data = response_data .data
336336 )
337337
@@ -710,7 +710,7 @@ def __deserialize_file(self, response):
710710 os .close (fd )
711711 os .remove (path )
712712
713- content_disposition = response .getheaders ("Content-Disposition" )
713+ content_disposition = response .getheader ("Content-Disposition" )
714714 if content_disposition :
715715 m = re .search (
716716 r'filename=[\'"]?([^\'"\s]+)[\'"]?' ,
Original file line number Diff line number Diff line change @@ -331,7 +331,7 @@ def response_deserialize(
331331 return ApiResponse (
332332 status_code = response_data .status ,
333333 data = return_data ,
334- headers = response_data .getheaders (),
334+ headers = response_data .getheader (),
335335 raw_data = response_data .data
336336 )
337337
@@ -710,7 +710,7 @@ def __deserialize_file(self, response):
710710 os .close (fd )
711711 os .remove (path )
712712
713- content_disposition = response .getheaders ("Content-Disposition" )
713+ content_disposition = response .getheader ("Content-Disposition" )
714714 if content_disposition :
715715 m = re .search (
716716 r'filename=[\'"]?([^\'"\s]+)[\'"]?' ,
Original file line number Diff line number Diff line change @@ -328,7 +328,7 @@ def response_deserialize(
328328 return ApiResponse (
329329 status_code = response_data .status ,
330330 data = return_data ,
331- headers = response_data .getheaders (),
331+ headers = response_data .getheader (),
332332 raw_data = response_data .data
333333 )
334334
@@ -707,7 +707,7 @@ def __deserialize_file(self, response):
707707 os .close (fd )
708708 os .remove (path )
709709
710- content_disposition = response .getheaders ("Content-Disposition" )
710+ content_disposition = response .getheader ("Content-Disposition" )
711711 if content_disposition :
712712 m = re .search (
713713 r'filename=[\'"]?([^\'"\s]+)[\'"]?' ,
Original file line number Diff line number Diff line change @@ -328,7 +328,7 @@ def response_deserialize(
328328 return ApiResponse (
329329 status_code = response_data .status ,
330330 data = return_data ,
331- headers = response_data .getheaders (),
331+ headers = response_data .getheader (),
332332 raw_data = response_data .data
333333 )
334334
@@ -707,7 +707,7 @@ def __deserialize_file(self, response):
707707 os .close (fd )
708708 os .remove (path )
709709
710- content_disposition = response .getheaders ("Content-Disposition" )
710+ content_disposition = response .getheader ("Content-Disposition" )
711711 if content_disposition :
712712 m = re .search (
713713 r'filename=[\'"]?([^\'"\s]+)[\'"]?' ,
You can’t perform that action at this time.
0 commit comments