Skip to content

lua: add base64Decode() to HTTP Lua filter #46873

Description

@cainelli

The Lua HTTP filter exposes handle:base64Escape(str) for encoding but has no corresponding decode function. Scripts that receive base64-encoded values (e.g. in headers from list claims) must work around using a pure-Lua implementation.

Proposed API:

local decoded = handle:base64Decode("Zm9vYmFy")  -- returns "foobar"

Metadata

Metadata

Assignees

Labels

area/luaenhancementFeature requests. Not bugs or questions.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions