apache/openwhisk

do not base64 encode __ow_body for raw web actions

Ouverte

#3 920 ouverte le 30 juil. 2018

 (2 commentaires) (0 réaction) (0 personne assignée)Scala (1 177 forks)batch import
controllergood first issuehelp wanted

Métriques du dépôt

Stars
 (6 777 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

#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)).

Guide contributeur