apache/openwhisk

do not base64 encode __ow_body for raw web actions

開放

#3,920 建立於 2018年7月30日

 (2 則留言) (0 個反應) (0 位負責人)Scala (1,177 個分叉)batch import
controllergood first issuehelp wanted

倉庫指標

星標
 (6,777 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南