Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

knative - inferred Content-Type from Non-JSON body #216

Open
pritidesai opened this issue Mar 18, 2019 · 0 comments
Open

knative - inferred Content-Type from Non-JSON body #216

pritidesai opened this issue Mar 18, 2019 · 0 comments

Comments

@pritidesai
Copy link
Member

If a content-type header is not declared in the action result’s headers, the body is interpreted as application/json for non-string values, and text/html otherwise. When the content-type is defined, the runtime should determine if the response is binary data or plain text and decode the string using a base64 decoder as needed. If the body fail to decode correctly, an error must return to the caller.

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

No branches or pull requests

1 participant