From 7a4b06aa61901c8c2da4b0b2ba80039c11a54769 Mon Sep 17 00:00:00 2001 From: Umputun Date: Fri, 18 May 2018 02:11:35 -0500 Subject: [PATCH] remove img proxy dbg --- app/rest/proxy/image.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/rest/proxy/image.go b/app/rest/proxy/image.go index b8f64128..d65530b9 100644 --- a/app/rest/proxy/image.go +++ b/app/rest/proxy/image.go @@ -31,7 +31,6 @@ func (p Image) Convert(commentHTML string) string { if err != nil { return commentHTML } - log.Print(p.replace(commentHTML, imgs)) return p.replace(commentHTML, imgs) } @@ -48,7 +47,7 @@ func (p Image) Routes() chi.Router { rest.SendErrorJSON(w, r, http.StatusBadRequest, err, "can't decode image url") return } - client := http.Client{Timeout: 5 * time.Second} + client := http.Client{Timeout: 30 * time.Second} resp, err := client.Get(string(src)) if err != nil { rest.SendErrorJSON(w, r, http.StatusBadRequest, err, "can't get image "+string(src))