Mercurial Hosting > linkmystyle
diff src/opened.gif.luan @ 0:8f4df159f06b
start public repo
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 11 Jul 2025 20:57:49 -0600 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/opened.gif.luan Fri Jul 11 20:57:49 2025 -0600 @@ -0,0 +1,17 @@ +local Luan = require "luan:Luan.luan" +local error = Luan.error +local String = require "luan:String.luan" +local trim = String.trim or error() +local Io = require "luan:Io.luan" +local Http = require "luan:http/Http.luan" +local Logging = require "luan:logging/Logging.luan" +local logger = Logging.logger "opened.gif" + + +local gif = Io.uri("site:/images/1.gif").read_binary() + +return function() + local email = Http.request.parameters.email + logger.error(email.."\nUser-Agent: "..Http.request.headers["user-agent"]) + Http.response.binary_writer().write(gif) +end