Skip to content

Commit 04426c4

Browse files
authored
Update http.js
Не правильно переданы args в hendler, должно быть черз сперд
1 parent f87bf00 commit 04426c4

File tree

1 file changed

+1
-1
lines changed
  • JavaScript/b-transport/transport

1 file changed

+1
-1
lines changed

JavaScript/b-transport/transport/http.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports = (routing, port, console) => {
3232
if (!handler) return res.end('"Not found"');
3333
const { args } = await receiveArgs(req);
3434
console.log(`${socket.remoteAddress} ${method} ${url}`);
35-
const result = await handler(args);
35+
const result = await handler(...args);
3636
res.end(JSON.stringify(result));
3737
}).listen(port);
3838

0 commit comments

Comments
 (0)