Added code comments and did some cleanup.
This commit is contained in:
parent
3e753c07d4
commit
411b040a11
2 changed files with 15 additions and 7 deletions
|
|
@ -2,7 +2,7 @@
|
|||
permalink: /cgi/lua/test.lua
|
||||
---
|
||||
|
||||
package.path = '{{ site.libdir }}/lua/?.lua;' .. package.path
|
||||
package.path = '{{ site.libdir }}/lua/?.lua;'..package.path
|
||||
|
||||
require('xw3.http')
|
||||
|
||||
|
|
@ -25,7 +25,7 @@ print(os.execute('/usr/bin/env | /usr/bin/sort'))
|
|||
print()
|
||||
--print(debug.traceback("Stack trace"))
|
||||
--print(debug.getinfo(1))
|
||||
print('HTTP_COOKIE:')
|
||||
print('HTTP_COOKIES:')
|
||||
print(os.getenv("HTTP_COOKIE"))
|
||||
print()
|
||||
|
||||
|
|
@ -37,4 +37,3 @@ for k, v in pairs(cookies) do
|
|||
print(k, v)
|
||||
end
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue