Implement a command-line interface to the running webserver, and a way to get/set...
[ndcode_site.git] / _lib / post_request.jst
index 79a930e..9df0ecd 100644 (file)
@@ -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)