Skip to content

Commit

Permalink
tests: ignore coverage of 0.8 code branch
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Jan 7, 2019
1 parent 11be606 commit 21cd2ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,7 @@ function getip (req) {
*/

function headersSent (res) {
// istanbul ignore next: node.js 0.8 support
return typeof res.headersSent !== 'boolean'
? Boolean(res._header)
: res.headersSent
Expand Down

0 comments on commit 21cd2ed

Please sign in to comment.