apache / apache/openwhisk-devtools

knative - inferred Content-Type from Non-JSON body

Open
#216 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
181
Forks
124
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.