A little update for README.md.

This commit is contained in:
Alexander Andreev 2023-05-06 04:49:57 +04:00
parent 352576385b
commit a5f46d9187
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -33,7 +33,7 @@ It will return an ID of a new CAPTCHA in `text/plain`.
Responds with an image in JPEG format (`image/jpeg`). Responds with an image in JPEG format (`image/jpeg`).
An optional URL parameter `style=` set a name of a CAPTCHA style if it is An optional URL parameter `style=` set a name of a CAPTCHA style if it is
supported by CAPTCHA implementation. supported by CAPTCHA implementation. E.g. `style=dark`.
#### HTTP codes #### HTTP codes
- `200` if exists - `200` if exists
@ -110,7 +110,7 @@ Get an image for a CAPTCHA:
i := inmemdb.Image(captchaID, captchaStyle) i := inmemdb.Image(captchaID, captchaStyle)
if i == nil { if i == nil {
... // error handling ... // do something if there was no image returned
} }
jpeg.Encode(w, *i, &jpeg.Options{Quality: 20}) jpeg.Encode(w, *i, &jpeg.Options{Quality: 20})