Skip to content

Commit 1292307

Browse files
authored
Update README.md
1 parent 788ba85 commit 1292307

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ Example
458458
[Back to content](#content)
459459

460460
tnt_http_rest_methods
461-
----------------
461+
---------------------
462462
**syntax:** *tnt_http_rest_methods get, post, put, patch, delete, all*
463463

464464
**default:** *no*
@@ -484,7 +484,7 @@ Example
484484
[Back to content](#content)
485485

486486
tnt_pass_http_request
487-
------------------
487+
---------------------
488488
**syntax:** *tnt_pass_http_request [on|off|parse_args|unescape|pass_body|pass_headers_out|parse_urlencoded]*
489489

490490
**default:** *off*
@@ -562,14 +562,16 @@ Examples #3 (parse_urlencoded)
562562
function tarantool_stored_procedure_name(req, ...)
563563
req.headers -- a lua table
564564
req.query -- a string
565-
req.body -- a lua table with url encoded args
565+
req.body[0]['q'] -- 1
566+
req.body[1]['q'] -- 2
567+
req.body[2]['q'] -- 3
566568
return true
567569
end
568570
```
569571

570572
```bash
571573
# Call tarantool_stored_procedure_name()
572-
$> wget NGINX_HOST/tarantool_stored_procedure_name/some/mega/path?q=1
574+
$> wget NGINX_HOST/tarantool_stored_procedure_name/some/mega/path?q=1&q=2&q=3
573575
```
574576

575577
[Back to content](#content)

0 commit comments

Comments
 (0)