algebraic-captcha
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "algebraic-captcha", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "NodeJS math captcha package with algebraic formulas", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -54,3 +54,3 @@ # algebraic-captcha | ||
- `answer` - is numeric answer for given equation (10 for this case). | ||
- `image` - image buffer | ||
- `image` - svg image string | ||
![image](./docs/default.svg) | ||
@@ -73,3 +73,3 @@ | ||
req.session.captcha = answer; | ||
res.writeHead(200, {'Content-Type': 'image/png'}); | ||
res.writeHead(200, {'Content-Type': 'image/svg+xml'}); | ||
res.end(image); | ||
@@ -76,0 +76,0 @@ }); |
183501