diff --git a/internal/handlers/handlers.go b/internal/handlers/handlers.go index 567dd9a..8ca27b9 100644 --- a/internal/handlers/handlers.go +++ b/internal/handlers/handlers.go @@ -39,7 +39,7 @@ func (h *CaptchaHandlers) Image(w http.ResponseWriter, r *http.Request) { w.Header().Add("Content-Disposition", "inline; filename=\""+string(captchaID)+"\"") - png.Encode(w, *captchaImage) + png.Encode(w, captchaImage) } func (h *CaptchaHandlers) Solve(w http.ResponseWriter, r *http.Request) {