Skip to content

Commit fba8098

Browse files
committed
interactive_call_endpoint: Fix parameter handling.
Signed-off-by: Anders Kaseorg <[email protected]>
1 parent 1d30882 commit fba8098

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/interactive_call_endpoint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if (process.argv[2] === 'help') {
1414
}
1515
const method = process.argv[2] || 'GET';
1616
const endpoint = process.argv[3] || '/users/me';
17-
const params = process.argv[4] || '';
17+
const params = JSON.parse(process.argv[4] || '{}');
1818
const zuliprc = process.argv[5]
1919
? path.resolve(__dirname, process.argv[5])
2020
: path.resolve(homedir, '.zuliprc');

0 commit comments

Comments
 (0)