public
/
ndcode_site.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Implement a command-line interface to the running webserver, and a way to get/set...
[ndcode_site.git]
/
_lib
/
post_request.jst
diff --git
a/_lib/post_request.jst
b/_lib/post_request.jst
index
79a930e
..
9df0ecd
100644
(file)
--- a/
_lib/post_request.jst
+++ b/
_lib/post_request.jst
@@
-23,7
+23,7
@@
return async (env, handler) => {
}
)
env.request.pipe(write_stream)
- let args = JSON.parse((await data).toString())
+ let args = JSON.parse((await data).toString(
'utf-8'
))
console.log('endpoint', env.parsed_url.path, 'args', JSON.stringify(args))
result = await handler(...args)