Permalink
Browse files

[fixes #43254575]

handles the null
  • Loading branch information...
1 parent 3423912 commit eb60b88f60bc294e170ded367db30b7581fb813a @grobot grobot committed Feb 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/server.js
View
@@ -43,11 +43,11 @@ var Server = function(server, path, services, wsdl) {
}
req.on('data', function(chunk) {
if (gunzip) chunk = gunzip.inflate(chunk, "binary");
- chunk = chunk.replace('\0','');
chunks.push(chunk);
})
req.on('end', function() {
var xml = chunks.join(''), result;
+ xml = xml.replace(/\0/g,'');
if (gunzip) {
gunzip.end();
gunzip = null

0 comments on commit eb60b88

Please sign in to comment.