mirror of
https://github.com/hanzoai/gateway.git
synced 2026-10-30 15:04:44 +00:00
- Merge krakend-ce v2.12.1 Go source into gateway repo - Rename module to github.com/hanzoai/gateway/v2 - Remove upstream usage telemetry (no phoning home) - Multi-stage Dockerfile: build Go binary from source + bake config - Update k8s deployments to use registry.hanzo.ai/gateway images - Add imagePullSecrets for private registry auth - Combined Makefile with build + deploy targets - Zero upstream Docker image dependencies (supply chain security)
14 lines
343 B
Lua
14 lines
343 B
Lua
function post_proxy_decorator( resp )
|
|
local responseData = resp:data()
|
|
local responseContent = responseData:get("source_result")
|
|
local message = responseContent:get("message")
|
|
|
|
local c = string.match(message, "Successfully")
|
|
|
|
if not not c
|
|
then
|
|
responseData:set("result", "success")
|
|
else
|
|
responseData:set("result", "failed")
|
|
end
|
|
end |