Mercurial Hosting > linkmystyle
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:8f4df159f06b |
---|---|
1 local Luan = require "luan:Luan.luan" | |
2 local error = Luan.error | |
3 local String = require "luan:String.luan" | |
4 local trim = String.trim or error() | |
5 local Io = require "luan:Io.luan" | |
6 local Http = require "luan:http/Http.luan" | |
7 local Logging = require "luan:logging/Logging.luan" | |
8 local logger = Logging.logger "opened.gif" | |
9 | |
10 | |
11 local gif = Io.uri("site:/images/1.gif").read_binary() | |
12 | |
13 return function() | |
14 local email = Http.request.parameters.email | |
15 logger.error(email.."\nUser-Agent: "..Http.request.headers["user-agent"]) | |
16 Http.response.binary_writer().write(gif) | |
17 end |