apache/openwhisk

do not base64 encode __ow_body for raw web actions

Open

#3.920 geöffnet am 30. Juli 2018

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Scala (1.177 Forks)batch import
controllergood first issuehelp wanted

Repository-Metriken

Stars
 (6.777 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 17h 31m) (3 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide