Skip to content

Commit

Permalink
fix: outgoingMessage.prototype._headers is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
jackqqxu committed Jul 19, 2019
1 parent 573ab47 commit 379bad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/tsw/util/auto-report/logReport.js
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ module.exports.reportLog = function() {
try {

// webapp的二进制回包转成可视化的结构
if (!isWebSocket && res._body && res.getHeader('content-type') === 'webapp') {
if (!isWebSocket && res._body && res.getHeader('content-type') === 'webapp') { // 不要用_headers了
res._body = Buffer.from(format.formatBuffer(res._body));
}

Expand Down

0 comments on commit 379bad0

Please sign in to comment.