Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

fix: gravatar broken on IE11 (#340)

Guilherme Oenning27a3ab09fdc7
diff --git a/app/handlers/avatar.go b/app/handlers/avatar.go
index d5cb8798b..8e24393a2 100644
--- a/app/handlers/avatar.go
+++ b/app/handlers/avatar.go
@@ -34,7 +34,7 @@ func Avatar() web.HandlerFunc {
if resp.StatusCode == http.StatusOK {
bytes, err := ioutil.ReadAll(resp.Body)
if err == nil {
- return c.Blob(http.StatusOK, "image/png", bytes)
+ return c.Blob(http.StatusOK, http.DetectContentType(bytes), bytes)
}
}
}