remove img proxy dbg

This commit is contained in:
Umputun
2018-05-18 02:11:35 -05:00
parent d66960e8b0
commit 7a4b06aa61
+1 -2
View File
@@ -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))