Skip to content

Commit

Permalink
Fix back compat lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
kanongil committed Aug 23, 2016
1 parent e70e54f commit 9f5d476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ internals.addContentRange = function (response, callback) {
const length = response.headers['content-length'];
let range = null;

if (request.route.settings.response.ranges !== false) { // Backwards compatible comparison
if (Hoek.reach(request.route.settings, 'response.ranges') !== false) { // Backwards compatible comparison
if (request.headers.range && length) {

// Check If-Range
Expand Down

0 comments on commit 9f5d476

Please sign in to comment.