mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-05 03:46:09 +00:00
Binary mode for file deserialization in python (#6936)
* use wb mode in file deserialization * add auto generated files from security/python-petstore.sh
This commit is contained in:
committed by
William Cheng
parent
90a0b7a7e2
commit
62444a7aaf
@@ -525,7 +525,7 @@ class ApiClient(object):
|
||||
content_disposition).group(1)
|
||||
path = os.path.join(os.path.dirname(path), filename)
|
||||
|
||||
with open(path, "w") as f:
|
||||
with open(path, "wb") as f:
|
||||
f.write(response.data)
|
||||
|
||||
return path
|
||||
|
||||
Reference in New Issue
Block a user