@@ -56,7 +56,7 @@ module.exports = function(compiler, options) {
5656 if ( typeof options . log !== "function" ) options . log = console . log . bind ( console ) ;
5757 if ( typeof options . warn !== "function" ) options . warn = console . warn . bind ( console ) ;
5858 if ( typeof compiler . outputPath === "string" && compiler . outputPath . lastIndexOf ( "/" , 0 ) !== 0 ) {
59- throw new Error ( ' `output.path` needs to be an absolute path or "/".' ) ;
59+ throw new Error ( " `output.path` needs to be an absolute path or `/`." ) ;
6060 }
6161
6262 // store our files in memory
@@ -160,13 +160,13 @@ module.exports = function(compiler, options) {
160160 }
161161
162162 function handleRangeHeaders ( content , req , res ) {
163- res . setHeader ( ' Accept-Ranges' , ' bytes' ) ;
163+ res . setHeader ( " Accept-Ranges" , " bytes" ) ;
164164 if ( req . headers . range ) {
165165 var ranges = parseRange ( content . length , req . headers . range ) ;
166166
167167 // unsatisfiable
168168 if ( - 1 == ranges ) {
169- res . setHeader ( ' Content-Range' , ' bytes */' + content . length ) ;
169+ res . setHeader ( " Content-Range" , " bytes */" + content . length ) ;
170170 res . statusCode = 416 ;
171171 }
172172
@@ -176,8 +176,8 @@ module.exports = function(compiler, options) {
176176 res . statusCode = 206 ;
177177 var length = content . length ;
178178 res . setHeader (
179- ' Content-Range' ,
180- ' bytes ' + ranges [ 0 ] . start + '-' + ranges [ 0 ] . end + '/' + length
179+ " Content-Range" ,
180+ " bytes " + ranges [ 0 ] . start + "-" + ranges [ 0 ] . end + "/" + length
181181 ) ;
182182
183183 content = content . slice ( ranges [ 0 ] . start , ranges [ 0 ] . end + 1 ) ;
@@ -196,7 +196,7 @@ module.exports = function(compiler, options) {
196196 } , req ) ;
197197 }
198198
199- if ( req . method !== ' GET' ) {
199+ if ( req . method !== " GET" ) {
200200 return goNext ( ) ;
201201 }
202202
0 commit comments