Skip to content

Commit

Permalink
Flush the headers property with empty object isteadof undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Ibrahim Gunduz committed Nov 17, 2021
1 parent c53bb62 commit c2eb22b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/logger-helper-test.js
Expand Up @@ -1011,8 +1011,8 @@ describe('logger-helpers tests', function () {
body: 'body',
test1: 'test2'
};
delete response.headers;
delete response._headers;
response.headers = {};
response._headers = {};
response._bodyStr = _.cloneDeep(newBody);
let prevBody = _.cloneDeep(response.body);

Expand Down

0 comments on commit c2eb22b

Please sign in to comment.