apache/openwhisk

do not base64 encode __ow_body for raw web actions

Open

#3920 aperta il 30 lug 2018

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)Scala (1177 fork)batch import
controllergood first issuehelp wanted

Metriche repository

Star
 (6777 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

#3919 removes the base64 encoding requirement when returning JSON as string (and setting the content-type). However we continue to encode JSON for raw http actions receiving __ow_body. For symmetry, we should stop doing that as well. This is largely in place for legacy reasons (spray vs akka). The net of this change is that functions would JSON.parse(param.__ow_body) instead of JSON.parse(decode64(param.__ow_body)).

Guida contributor