From a5f46d918754976763774252414ba1ed6d17c64d Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sat, 6 May 2023 04:49:57 +0400 Subject: [PATCH] A little update for README.md. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8030cfe..8c1c0e9 100644 --- a/README.md +++ b/README.md @@ -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`). 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 - `200` if exists @@ -110,7 +110,7 @@ Get an image for a CAPTCHA: i := inmemdb.Image(captchaID, captchaStyle) if i == nil { - ... // error handling + ... // do something if there was no image returned } jpeg.Encode(w, *i, &jpeg.Options{Quality: 20})