Skip to content

Commit 018ed03

Browse files
committed
replace spaces
1 parent cb8ec37 commit 018ed03

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/server.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ exports.Server = function Server(bsClient, workers) {
9999
}
100100

101101
function parseBody(body) {
102-
return JSON.parse(qs.parse(body).data.replace(/\n/g, "\\n"));
102+
// TODO: Have better implementation
103+
return JSON.parse(qs.parse(body).data.replace(/\n/g, "\\n").replace(/\\s/g, "\s"));
103104
}
104105

105106
handlers = {

0 commit comments

Comments
 (0)