fetch pfp attempt uno
Anirudh Oppiliappan x@icyphox.sh
Tue, 08 Nov 2022 15:41:52 +0530
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
web.go
→
web.go
@@ -35,6 +35,7 @@ "time"
"unicode/utf8" "github.com/gorilla/mux" + "github.com/sassoftware/relic/lib/dlog" "humungus.tedunangst.com/r/webs/cache" "humungus.tedunangst.com/r/webs/httpsig" "humungus.tedunangst.com/r/webs/junk"@@ -2247,6 +2248,7 @@ func avatate(w http.ResponseWriter, r *http.Request) {
if develMode { loadAvatarColors() } + var a []byte n := r.FormValue("a") if redir := lookatme(n); redir != "" { http.Redirect(w, r, redir, http.StatusSeeOther)@@ -2256,6 +2258,7 @@ a := genAvatar(n)
if !develMode { w.Header().Set("Cache-Control", "max-age="+somedays()) } + w.Write(a) }