Showing 1 of 1 files from the diff.

@@ -418,8 +418,14 @@
Loading
418 418
          reqSocket.globalValue = req.globalValue;
419 419
          resSocket.statusCode = resData.statusCode;
420 420
          if (buf) {
421 -
            reqSocket.unshift(buf);
422 -
            buf = null;
421 +
            var _pipe = reqSocket.pipe;
422 +
            reqSocket.pipe = function(stream) {
423 +
              if (buf) {
424 +
                stream.write(buf);
425 +
                buf = null;
426 +
              }
427 +
              return _pipe.apply(this, arguments);
428 +
            };
423 429
          }
424 430
          pluginMgr.resolvePipePlugin(reqSocket, function() {
425 431
            data.pipe = reqSocket._pipeRule;
Files Coverage
biz 66.79%
lib 74.82%
index.js 88.89%
Project Totals (89 files) 74.31%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.