Skip to content

update so utf8 decode is skipped for binary data#9980

Open
glicht wants to merge 1 commit intoswagger-api:masterfrom
glicht:skip-decode-binary
Open

update so utf8 decode is skipped for binary data#9980
glicht wants to merge 1 commit intoswagger-api:masterfrom
glicht:skip-decode-binary

Conversation

@glicht
Copy link

@glicht glicht commented Jan 13, 2020

PR checklist

  • Read the contribution guidelines.
  • Ran the shell script under ./bin/ to update Petstore sample so that CIs can verify the change. (For instance, only need to run ./bin/{LANG}-petstore.sh and ./bin/security/{LANG}-petstore.sh if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in .\bin\windows\.
  • Filed the PR against the correct branch: 3.0.0 branch for changes related to OpenAPI spec 3.0. Default: master.
  • Copied the technical committee to review the pull request if your PR is targeting a particular programming language. Python language: @kenjones-cisc fyi.

Description of the PR

Should fix: #2305

Added a check of content type. If it is octet-stream then data is not decoded using utf8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[python] Binary string response encoding with Python 3

1 participant