File: headers.lua

package info (click to toggle)
apache2 2.4.10-10
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 50,928 kB
  • sloc: ansic: 155,370; sh: 12,929; perl: 1,760; awk: 738; makefile: 577; lex: 374; yacc: 161
file content (6 lines) | stat: -rw-r--r-- 128 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
function handle(r)
   local host = r.headers_in['host']
   r:debug(host)
   r:puts(host)
   r.headers_out['wombat'] = 'lua'
end