1
0
Fork 0
apache2/debian/perl-framework/t/htdocs/modules/lua/setheaderfromparam.lua
Daniel Baumann f56986e2d9
Adding debian version 2.4.63-1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 11:01:27 +02:00

10 lines
278 B
Lua

-- Syntax: setheader.lua?HeaderName=foo&HeaderValue=bar
--
-- This will return a document with 'bar' set in the header 'foo'
function handle(r)
local GET, GETMULTI = r:parseargs()
r.headers_out[GET['HeaderName']] = GET['HeaderValue']
r:puts("Header set")
end