diff --git a/lib/middleware/common.js b/lib/middleware/common.js index 96ac2df29..2eea405d8 100644 --- a/lib/middleware/common.js +++ b/lib/middleware/common.js @@ -58,7 +58,7 @@ var createServeFile = function (fs, directory, config) { return 206 } else { // Multiple ranges are not supported. Maybe future? - responseData = new Buffer(0) + responseData = Buffer.alloc(0) return 416 } }