diff options
| author | Xe Iaso <me@xeiaso.net> | 2024-07-09 15:13:03 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2024-07-09 15:13:03 -0400 |
| commit | 3ae65eb32e4380cb32857d28eaa0f627015c06e9 (patch) | |
| tree | 48010d9bf8e3d163d0c450fb217ebd167069e071 /cmd/xesite | |
| parent | 2821c048ccf0bdfbb8ef09a6cbac6e4e2e817716 (diff) | |
| download | xesite-3ae65eb32e4380cb32857d28eaa0f627015c06e9.tar.xz xesite-3ae65eb32e4380cb32857d28eaa0f627015c06e9.zip | |
cmd/xesite: fix IRC: why it failed talk link on orange site
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd/xesite')
| -rw-r--r-- | cmd/xesite/main.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/xesite/main.go b/cmd/xesite/main.go index 03d2551..0062086 100644 --- a/cmd/xesite/main.go +++ b/cmd/xesite/main.go @@ -116,6 +116,10 @@ func main() { mux.Handle("/.within/hook/patreon", &PatreonWebhook{fs: fs}) + mux.HandleFunc("/static/talks/irc-why-it-failed.pdf", func(w http.ResponseWriter, r *http.Request) { + http.Redirect(w, r, "https://cdn.xeiaso.net/file/christine-static/static/talks/irc-why-it-failed.pdf", http.StatusMovedPermanently) + }) + var h http.Handler = mux h = internal.ClackSet(fs.Clacks()).Middleware(h) h = internal.CacheHeader(h) |
