handlers.go. Now image is being returned by value.

This commit is contained in:
Alexander Andreev 2022-07-30 15:35:13 +04:00
parent f35c16f837
commit f5ea776e87
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -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) {