openidec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 2a2b57bf2848330e9ae17b338899c24f0b3b81ea
parent 2e48f43db17991ec3e25b0510c2ec7770c4a5050
Author: Peter Kosyh <p.kosyh@gmail.com>
Date:   Mon,  2 Nov 2020 13:59:27 +0300

wrong content-type for avatars

Diffstat:
Mii-node/web.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ii-node/web.go b/ii-node/web.go @@ -301,7 +301,7 @@ func www_avatar(ctx *WebContext, w http.ResponseWriter, r *http.Request, user st } b := new(bytes.Buffer) if err := png.Encode(b, img); err == nil { - w.Header().Set("Content-Type", "image/jpeg") + w.Header().Set("Content-Type", "image/png") w.Header().Set("Content-Length", fmt.Sprintf("%d", len(b.Bytes()))) if _, err := w.Write(b.Bytes()); err != nil { return nil