There was an error while loading. Please reload this page.
1 parent a15516f commit 9a1c369Copy full SHA for 9a1c369
README.rst
@@ -1208,7 +1208,7 @@ example.js:
1208
async function set_keyval(r) {
1209
let method = r.args.method ? r.args.method : 'POST';
1210
let res = await r.subrequest('/api/7/http/keyvals/foo',
1211
- { method, r.requestBody});
+ { method, body: r.requestBody});
1212
1213
if (res.status >= 300) {
1214
r.return(res.status, res.responseBody);
njs/http/api/set_keyval.js
@@ -1,7 +1,7 @@
1
2
3
4
5
6
7
0 commit comments