Commit afeff1ad3ca06e867dda655c7101ae2ec633ae38

Authored by Adhidarma Hadiwinoto
1 parent a92c3789b9
Exists in master

strip space on createPlainHttpServer

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -245,7 +245,7 @@ function createPlainHttpServer() {
245 245 var msg = qs.msg + '. STATUSCODE:' + qs.statuscode;
246 246  
247 247 if (rc == '00' && qs.sn) {
248   - msg = 'SN=' + qs.sn.trim() + '; ' + msg;
  248 + msg = 'SN=' + qs.sn.replace(/ /g, '-').trim() + '; ' + msg;
249 249 }
250 250  
251 251 response.end('OK');