Skip to content

Commit

Permalink
handle missing coverage on hapi < 15
Browse files Browse the repository at this point in the history
  • Loading branch information
hueniverse committed Aug 27, 2016
1 parent 3f9a36a commit 2d510b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/utils.js
Expand Up @@ -79,7 +79,9 @@ class RequestSent {
};
this.route = request.route.path;

/* $lab:coverage:off$ */
this.log = (request.route.settings.log === false ? [] : request.getLog()); // Explicitly compare to false for hapi < v15
/* $lab:coverage:on$ */

if (reqOptions.headers) {
this.headers = req.headers;
Expand Down

0 comments on commit 2d510b1

Please sign in to comment.