aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/gitea.com/macaron/captcha/captcha.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/gitea.com/macaron/captcha/captcha.go')
-rw-r--r--vendor/gitea.com/macaron/captcha/captcha.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/gitea.com/macaron/captcha/captcha.go b/vendor/gitea.com/macaron/captcha/captcha.go
index b6e51f2a26..283db3b43f 100644
--- a/vendor/gitea.com/macaron/captcha/captcha.go
+++ b/vendor/gitea.com/macaron/captcha/captcha.go
@@ -240,10 +240,10 @@ func Captchaer(options ...Options) macaron.Handler {
}
}
+ ctx.Status(200)
if _, err := NewImage([]byte(chars), cpt.StdWidth, cpt.StdHeight, cpt.ColorPalette).WriteTo(ctx.Resp); err != nil {
panic(fmt.Errorf("write captcha: %v", err))
}
- ctx.Status(200)
return
}