nop, not a good idea with png

This commit is contained in:
Umputun
2018-02-14 15:27:31 -06:00
parent a8e1f5e794
commit b9253cbde9
-1
View File
@@ -79,7 +79,6 @@ func (p *Proxy) Routes() chi.Router {
router.Get("/{avatar}", func(w http.ResponseWriter, r *http.Request) {
avatar := chi.URLParam(r, "avatar")
location := p.location(strings.TrimSuffix(avatar, ".image"))
location = p.location(strings.TrimSuffix(avatar, ".png"))
avFile := path.Join(location, avatar)
fh, err := os.Open(avFile)
if err != nil {